public class PdfType0Function extends AbstractPdfFunction<PdfStream>
| Constructor and Description |
|---|
PdfType0Function(double[] domain,
int[] size,
double[] range,
int order,
int[] encode,
double[] decode,
int bitsPerSample,
byte[] samples) |
PdfType0Function(double[] domain,
int[] size,
double[] range,
int order,
int bitsPerSample,
byte[] samples) |
PdfType0Function(float[] domain,
int[] size,
float[] range,
int order,
int bitsPerSample,
byte[] samples) |
PdfType0Function(PdfStream pdfObject) |
| 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.
|
double[] |
getDecode() |
int[] |
getEncode() |
int |
getOrder() |
int[] |
getSize() |
void |
setDecode(double[] decode) |
void |
setDomain(double[] domain)
The valid input domain, input will be clipped to this domain contains a min max pair per input component.
|
void |
setEncode(int[] encode) |
void |
setOrder(int order) |
void |
setRange(double[] range)
the valid output range, output will be clipped to this range contains a min max pair per output component.
|
void |
setSize(int[] size) |
calculateFromByteArray, calculateFromByteArray, clip, clipInput, clipOutput, convertFloatArrayToDoubleArray, getAsPdfObject, getDomain, getFunctionType, getInputSize, getOutputSize, getRange, isWrappedObjectMustBeIndirect, normalizeensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic PdfType0Function(PdfStream pdfObject)
public PdfType0Function(double[] domain,
int[] size,
double[] range,
int order,
int bitsPerSample,
byte[] samples)
public PdfType0Function(float[] domain,
int[] size,
float[] range,
int order,
int bitsPerSample,
byte[] samples)
public PdfType0Function(double[] domain,
int[] size,
double[] range,
int order,
int[] encode,
double[] decode,
int bitsPerSample,
byte[] samples)
public int getOrder()
public void setOrder(int order)
public int[] getSize()
public void setSize(int[] size)
public int[] getEncode()
public void setEncode(int[] encode)
public double[] getDecode()
public void setDecode(double[] decode)
public boolean checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace)
AbstractPdfFunctioncheckCompatibilityWithColorSpace in interface IPdfFunctioncheckCompatibilityWithColorSpace in class AbstractPdfFunction<PdfStream>alternateSpace - The color space to verify againstpublic void setDomain(double[] domain)
AbstractPdfFunction(see ISO-320001 Table 38)
setDomain in interface IPdfFunctionsetDomain in class AbstractPdfFunction<PdfStream>domain - the new set of limitspublic void setRange(double[] range)
AbstractPdfFunction(see ISO-320001 Table 38)
setRange in interface IPdfFunctionsetRange in class AbstractPdfFunction<PdfStream>range - the new set of limtspublic double[] calculate(double[] input)
IPdfFunctioninput - The input values size must contain IPdfFunction.getInputSize() itemsIPdfFunction.getOutputSize() items containing the resultCopyright © 1998–2024 Apryse Group NV. All rights reserved.