java.lang.Object | |
↳ | com.pdftron.pdf.Function |
Although PDF is not a programming language it provides several types of function
object that represent parameterized classes of functions, including mathematical
formulas and sampled representations with arbitrary resolution. Functions are used
in various ways in PDF, including device-dependent rasterization information for
high-quality printing (halftone spot functions and transfer functions), color
transform functions for certain color spaces, and specification of colors as a
function of position for smooth shadings. Functions in PDF represent static,
self-contained numerical transformations.
PDF::Function represents a single, flat interface around all PDF function types.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | e_exponential | The Constant e_exponential. | |||||||||
int | e_postscript | The Constant e_postscript. | |||||||||
int | e_sampled | The Constant e_sampled. | |||||||||
int | e_stitching | The Constant e_stitching. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Function(Obj funct_dict)
Create a PDF.Function object from an existing SDF function dictionary.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
close()
Frees the native memory of the object.
| ||||||||||
void |
destroy()
Frees the native memory of the object.
| ||||||||||
double[] |
eval(double[] in)
Evaluate the function at a given point.
| ||||||||||
int |
getInputCardinality()
Get the input cardinality.
| ||||||||||
int |
getOutputCardinality()
Get the output cardinality.
| ||||||||||
Obj |
getSDFObj()
Get the SDFObj.
| ||||||||||
int |
getType()
Get the current function type
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.AutoCloseable
|
The Constant e_exponential.
The Constant e_postscript.
The Constant e_sampled.
The Constant e_stitching.
Create a PDF.Function object from an existing SDF function dictionary.
funct_dict | the funct_dict |
---|
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
PDFNetException |
---|
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
Evaluate the function at a given point.
Note: that size of 'in' array must be greater than or equal to function input cardinality.
in | the input point |
---|
PDFNetException |
---|
Get the input cardinality.
PDFNetException |
---|
Get the output cardinality.
PDFNetException |
---|