Package com.itextpdf.kernel.pdf.function
Class PdfType4Function
- java.lang.Object
-
- com.itextpdf.kernel.pdf.PdfObjectWrapper<T>
-
- com.itextpdf.kernel.pdf.function.AbstractPdfFunction<PdfStream>
-
- com.itextpdf.kernel.pdf.function.PdfType4Function
-
- All Implemented Interfaces:
IPdfFunction
public class PdfType4Function extends AbstractPdfFunction<PdfStream>
-
-
Constructor Summary
Constructors Constructor Description PdfType4Function(double[] domain, double[] range, byte[] code)
PdfType4Function(float[] domain, float[] range, byte[] code)
PdfType4Function(PdfStream dict)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
calculate(double[] input)
Calculates one set of input components to one set of output components.boolean
checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace)
Chacks wether the output of the function matches in components with the passed by color space.-
Methods inherited from class com.itextpdf.kernel.pdf.function.AbstractPdfFunction
calculateFromByteArray, calculateFromByteArray, clip, clipInput, clipOutput, convertFloatArrayToDoubleArray, getAsPdfObject, getDomain, getFunctionType, getInputSize, getOutputSize, getRange, isWrappedObjectMustBeIndirect, normalize, setDomain, setRange
-
Methods inherited from class com.itextpdf.kernel.pdf.PdfObjectWrapper
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
-
-
-
-
Constructor Detail
-
PdfType4Function
public PdfType4Function(PdfStream dict)
-
PdfType4Function
public PdfType4Function(double[] domain, double[] range, byte[] code)
-
PdfType4Function
public PdfType4Function(float[] domain, float[] range, byte[] code)
-
-
Method Detail
-
checkCompatibilityWithColorSpace
public boolean checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace)
Description copied from class:AbstractPdfFunction
Chacks wether the output of the function matches in components with the passed by color space.- Specified by:
checkCompatibilityWithColorSpace
in interfaceIPdfFunction
- Overrides:
checkCompatibilityWithColorSpace
in classAbstractPdfFunction<PdfStream>
- Parameters:
alternateSpace
- The color space to verify against- Returns:
- True when compatible
-
calculate
public double[] calculate(double[] input)
Description copied from interface:IPdfFunction
Calculates one set of input components to one set of output components.- Parameters:
input
- The input values size must containIPdfFunction.getInputSize()
items- Returns:
- an array the size of
IPdfFunction.getOutputSize()
items containing the result
-
-