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,
double n) |
PdfType2Function(float[] domain,
float[] range,
float[] c0,
float[] c1,
double 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.
|
void |
setC0(double[] value)
Sets values of C0 array.
|
void |
setC1(double[] value)
Sets values of C1 array.
|
void |
setN(double value)
sets value of N field.
|
calculateFromByteArray, calculateFromByteArray, checkCompatibilityWithColorSpace, clip, clipInput, clipOutput, convertFloatArrayToDoubleArray, getAsPdfObject, getDomain, getFunctionType, getInputSize, getRange, isWrappedObjectMustBeIndirect, normalize, setDomain, setRange
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfType2Function(PdfDictionary dict)
dict
- the function dictionarypublic PdfType2Function(double[] domain, double[] range, double[] c0, double[] c1, double n)
public PdfType2Function(float[] domain, float[] range, float[] c0, float[] c1, double n)
public double[] calculate(double[] input)
IPdfFunction
input
- 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 IPdfFunction
getOutputSize
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(double value)
value
- the value of N fieldCopyright © 1998–2023 Apryse Group NV. All rights reserved.