| java.lang.Object org.pdfbox.pdmodel.common.function.PDFunction org.pdfbox.pdmodel.common.function.PDStreamFunction org.pdfbox.pdmodel.common.function.PDFunctionType0
PDFunctionType0 | public class PDFunctionType0 extends PDStreamFunction (Code) | | This class represents a type 0 function in a PDF document.
author: Ben Litchfield version: $Revision: 1.2 $ |
PDFunctionType0 | protected PDFunctionType0(PDDocument doc)(Code) | | Constructor to create a new blank type 0 function.
Parameters: doc - The document that the function will be part of. |
PDFunctionType0 | public PDFunctionType0(PDStream functionDictionary)(Code) | | Constructor.
Parameters: functionDictionary - The prepopulated function dictionary. |
getBitsPerSample | public int getBitsPerSample()(Code) | | Get the number of bits that the output value will take up. Valid values
are 1,2,4,8,12,16,24,32.
Number of bits for each output value. |
getDecodeForParameter | public PDRange getDecodeForParameter(int paramNum)(Code) | | Get the decode for the input parameter.
Parameters: paramNum - The function parameter number. The decode parameter range or null if none is set. |
getEncodeForParameter | public PDRange getEncodeForParameter(int paramNum)(Code) | | Get the encode for the input parameter.
Parameters: paramNum - The function parameter number. The encode parameter range or null if none is set. |
getNumberOfSamples | public List getNumberOfSamples()(Code) | | The "Size" entry, which is the number of samples in
each input dimension of the sample table.
A List of java.lang.Integer objects. |
setBitsPerSample | public void setBitsPerSample(int bps)(Code) | | Set the number of bits that the output value will take up. Valid values
are 1,2,4,8,12,16,24,32.
Parameters: bps - The number of bits for each output value. |
setDecodeForParameter | public void setDecodeForParameter(int paramNum, PDRange range)(Code) | | Set the decode range for the param number.
Parameters: paramNum - The parameter number to set then decode values. Parameters: range - The range value to set. |
setEncodeForParameter | public void setEncodeForParameter(int paramNum, PDRange range)(Code) | | Set the encode range for the param number.
Parameters: paramNum - The parameter number to set then encode values. Parameters: range - The range value to set. |
setNumberOfSamples | public void setNumberOfSamples(List samples)(Code) | | Set the samples data, the "Size" entry in the type 0 function.
Parameters: samples - The samples data. |
|
|