public class PDFunctionType0 extends PDFunction
| Constructor and Description |
|---|
PDFunctionType0(COSBase function)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float[] |
eval(float[] input)
Evaluates the function at the given input.
|
int |
getBitsPerSample()
Get the number of bits that the output value will take up.
|
PDRange |
getDecodeForParameter(int paramNum)
Get the decode for the input parameter.
|
PDRange |
getEncodeForParameter(int paramNum)
Get the encode for the input parameter.
|
int |
getFunctionType()
Returns the function type.
|
int |
getOrder()
Get the order of interpolation between samples.
|
COSArray |
getSize()
The "Size" entry, which is the number of samples in each input dimension
of the sample table.
|
void |
setBitsPerSample(int bps)
Set the number of bits that the output value will take up.
|
void |
setDecodeValues(COSArray decodeValues)
This will set the decode values.
|
void |
setEncodeValues(COSArray encodeValues)
This will set the encode values.
|
clipToRange, clipToRange, create, getCOSObject, getDomainForInput, getNumberOfInputParameters, getNumberOfOutputParameters, getPDStream, getRangeForOutput, getRangeValues, interpolate, setDomainValues, setRangeValues, toStringpublic PDFunctionType0(COSBase function)
function - The function.public int getFunctionType()
getFunctionType in class PDFunctionpublic COSArray getSize()
public int getBitsPerSample()
public int getOrder()
public void setBitsPerSample(int bps)
bps - The number of bits for each output value.public PDRange getEncodeForParameter(int paramNum)
paramNum - The function parameter number.public void setEncodeValues(COSArray encodeValues)
encodeValues - The new encode values.public PDRange getDecodeForParameter(int paramNum)
paramNum - The function parameter number.public void setDecodeValues(COSArray decodeValues)
decodeValues - The new decode values.public float[] eval(float[] input)
throws IOException
eval in class PDFunctioninput - The array of input values for the function.
In many cases will be an array of a single value, but not always.IOException - if something went wrong processing the function.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.