Package com.itextpdf.kernel.pdf.function
Class PdfType4Function
java.lang.Object
com.itextpdf.kernel.pdf.PdfObjectWrapper
com.itextpdf.kernel.pdf.function.AbstractPdfFunction<PdfStream>
com.itextpdf.kernel.pdf.function.PdfType4Function
- All Implemented Interfaces:
-
IPdfFunction
-
Constructor Summary
ConstructorsConstructorDescriptionPdfType4Function(double[] domain, double[] range, byte[] code) PdfType4Function(float[] domain, float[] range, byte[] code) PdfType4Function(PdfStream dict) -
Method Summary
Modifier and TypeMethodDescriptiondouble[]calculate(double[] input) Calculates one set of input components to one set of output components.booleancheckCompatibilityWithColorSpace(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, setRangeMethods inherited from class com.itextpdf.kernel.pdf.PdfObjectWrapper
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
-
Constructor Details
-
PdfType4Function
-
PdfType4Function
public PdfType4Function(double[] domain, double[] range, byte[] code) -
PdfType4Function
public PdfType4Function(float[] domain, float[] range, byte[] code)
-
-
Method Details
-
checkCompatibilityWithColorSpace
Description copied from class:AbstractPdfFunctionChacks wether the output of the function matches in components with the passed by color space.- Specified by:
-
checkCompatibilityWithColorSpacein interfaceIPdfFunction - Overrides:
-
checkCompatibilityWithColorSpacein classAbstractPdfFunction<PdfStream> - Parameters:
-
alternateSpace- The color space to verify against - Returns:
- True when compatible
-
calculate
public double[] calculate(double[] input) Description copied from interface:IPdfFunctionCalculates 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
-