public class PdfType4Function extends AbstractPdfFunction<PdfStream>
Constructor and Description |
---|
PdfType4Function(double[] domain, double[] range, byte[] code) |
PdfType4Function(PdfStream dict) |
Modifier and Type | Method and 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.
|
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
calculateFromByteArray, calculateFromByteArray, clip, clipInput, clipOutput, getAsPdfObject, getDomain, getFunctionType, getInputSize, getOutputSize, getRange, normalize, setDomain, setRange
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfType4Function(PdfStream dict)
public PdfType4Function(double[] domain, double[] range, byte[] code)
public boolean checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace)
AbstractPdfFunction
checkCompatibilityWithColorSpace
in interface IPdfFunction
checkCompatibilityWithColorSpace
in class AbstractPdfFunction<PdfStream>
alternateSpace
- The color space to verify against
public double[] calculate(double[] input)
IPdfFunction
input
- The input values size must contain IPdfFunction.getInputSize()
items
IPdfFunction.getOutputSize()
items containing the result
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfStream>
Copyright © 1998–2022 iText Group NV. All rights reserved.