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, setRangeensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic PdfType2Function(PdfDictionary dict)
dict - the function dictionarypublic PdfType2Function(double[] domain,
double[] range,
double[] c0,
double[] c1,
int n)
public double[] calculate(double[] input)
IPdfFunctioninput - The input values size must contain IPdfFunction.getInputSize() itemsIPdfFunction.getOutputSize() items containing the resultpublic final int getOutputSize()
If Range field is absent, the size of C0 array will be returned.
getOutputSize in interface IPdfFunctiongetOutputSize in class AbstractPdfFunction<PdfDictionary>public final double[] getC0()
public final void setC0(double[] value)
value - the values of C0 arraypublic final double[] getC1()
public final void setC1(double[] value)
value - the values of C1 arraypublic final double getN()
public final void setN(int value)
value - the value of N fieldprotected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapperisWrappedObjectMustBeIndirect in class PdfObjectWrapper<PdfDictionary>Copyright © 1998–2023 iText Group NV. All rights reserved.