|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.pdfbox.pdmodel.common.function.PDFunction
org.pdfbox.pdmodel.common.function.PDStreamFunction
org.pdfbox.pdmodel.common.function.PDFunctionType0
This class represents a type 0 function in a PDF document.
| Constructor Summary | |
protected |
PDFunctionType0(PDDocument doc)
Constructor to create a new blank type 0 function. |
|
PDFunctionType0(PDStream functionDictionary)
Constructor. |
| Method Summary | |
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. |
List |
getNumberOfSamples()
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 |
setDecodeForParameter(int paramNum,
PDRange range)
Set the decode range for the param number. |
void |
setEncodeForParameter(int paramNum,
PDRange range)
Set the encode range for the param number. |
void |
setNumberOfSamples(List samples)
Set the samples data, the "Size" entry in the type 0 function. |
| Methods inherited from class org.pdfbox.pdmodel.common.function.PDStreamFunction |
getCOSObject, getCOSStream, getDomainForInput, getNumberOfInputParameters, getNumberOfOutputParameters, getRangeForOutput, setDomainForInput, setRangeForOutput |
| Methods inherited from class org.pdfbox.pdmodel.common.function.PDFunction |
create |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected PDFunctionType0(PDDocument doc)
doc - The document that the function will be part of.public PDFunctionType0(PDStream functionDictionary)
functionDictionary - The prepopulated function dictionary.| Method Detail |
public List getNumberOfSamples()
public void setNumberOfSamples(List samples)
samples - The samples data.public int getBitsPerSample()
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 setEncodeForParameter(int paramNum,
PDRange range)
paramNum - The parameter number to set then encode values.range - The range value to set.public PDRange getDecodeForParameter(int paramNum)
paramNum - The function parameter number.
public void setDecodeForParameter(int paramNum,
PDRange range)
paramNum - The parameter number to set then decode values.range - The range value to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||