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(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() |
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
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, getAsPdfObject, getDomain, getFunctionType, getInputSize, getOutputSize, getRange, normalize
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfType0Function(PdfStream pdfObject)
public PdfType0Function(double[] domain, int[] size, double[] 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)
AbstractPdfFunction
checkCompatibilityWithColorSpace
in interface IPdfFunction
checkCompatibilityWithColorSpace
in class AbstractPdfFunction<PdfStream>
alternateSpace
- The color space to verify against
public void setDomain(double[] domain)
AbstractPdfFunction
(see ISO-320001 Table 38)
setDomain
in interface IPdfFunction
setDomain
in class AbstractPdfFunction<PdfStream>
domain
- the new set of limits
public void setRange(double[] range)
AbstractPdfFunction
(see ISO-320001 Table 38)
setRange
in interface IPdfFunction
setRange
in class AbstractPdfFunction<PdfStream>
range
- the new set of limts
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.