public class PdfType2Function extends AbstractPdfFunction<PdfDictionary>
For more info see ISO 32000-1, section 7.10.3 "Type 2 (Exponential Interpolation) Functions".
Constructor and Description |
---|
PdfType2Function(double[] domain, double[] range, double[] c0, double[] c1, int n) |
PdfType2Function(PdfDictionary dict)
Instantiates a new PdfType2Function instance based on passed PdfDictionary instance.
|
Modifier and Type | Method and Description |
---|---|
double[] |
calculate(double[] input)
Calculates one set of input components to one set of output components.
|
double[] |
getC0()
Gets values of C0 array.
|
double[] |
getC1()
Gets values of C1 array.
|
double |
getN()
Gets value of N field.
|
int |
getOutputSize()
Gets output size of function.
|
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
void |
setC0(double[] value)
Sets values of C0 array.
|
void |
setC1(double[] value)
Sets values of C1 array.
|
void |
setN(int value)
sets value of N field.
|
calculateFromByteArray, calculateFromByteArray, checkCompatibilityWithColorSpace, clip, clipInput, clipOutput, getAsPdfObject, getDomain, getFunctionType, getInputSize, getRange, normalize, setDomain, setRange
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfType2Function(PdfDictionary dict)
dict
- the function dictionary
public PdfType2Function(double[] domain, double[] range, double[] c0, double[] c1, int n)
public double[] calculate(double[] input)
IPdfFunction
input
- The input values size must contain IPdfFunction.getInputSize()
items
IPdfFunction.getOutputSize()
items containing the result
public final int getOutputSize()
If Range field is absent, the size of C0 array will be returned.
getOutputSize
in interface IPdfFunction
getOutputSize
in class AbstractPdfFunction<PdfDictionary>
public final double[] getC0()
public final void setC0(double[] value)
value
- the values of C0 array
public final double[] getC1()
public final void setC1(double[] value)
value
- the values of C1 array
public final double getN()
public final void setN(int value)
value
- the value of N field
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2022 iText Group NV. All rights reserved.