public class FunctionType3 extends PDFFunction
Example 4.25 5 0 obj % Shading dictionary << /ShadingType 3 /ColorSpace /DeviceCMYK /Coords [ 0.0 0.0 0.096 0.0 0.0 1.0 00]% Concentric circles /Function 10 0 R /Extend [ true true ] >> endobj 10 0 obj % Color function << /FunctionType 3 /Domain [ 0.0 1.0 ] /Functions [ 11 0 R 12 0 R ] /Bounds [ 0.708 ] /Encode [ 1.0 0.0 0.0 1.0 ] >> endobj 11 0 obj % First subfunction << /FunctionType 2 /Domain [ 0.0 1.0 ] /C0 [ 0.929 0.357 1.000 0.298 ] /C1 [ 0.631 0.278 1.000 0.027 ] /N 1.048 >> endobj 12 0 obj % Second subfunction << /FunctionType 2 /Domain [ 0.0 1.0 ] /C0 [ 0.929 0.357 1.000 0.298 ] /C1 [ 0.941 0.400 1.000 0.102 ] /N 1.374 >> endobj
TYPE_0, TYPE_2, TYPE_3, TYPE_4
Modifier | Constructor and Description |
---|---|
protected |
FunctionType3()
Creates a new instance of FunctionType3
|
Modifier and Type | Method and Description |
---|---|
protected void |
doFunction(float[] inputs,
int inputOffset,
float[] outputs,
int outputOffset)
Map from m input values to n output values.
|
protected void |
parse(PDFObject obj)
Read the function information from a PDF Object.
|
calculate, calculate, getDomain, getFunction, getNumInputs, getNumOutputs, getRange, getType, setDomain, setRange
protected void parse(PDFObject obj) throws java.io.IOException
Read the function information from a PDF Object.
Required entries ( Table 3.38) (3200-1:2008:7.10.4, table: 41) are:
PDFFunction
superclass.parse
in class PDFFunction
java.io.IOException
protected void doFunction(float[] inputs, int inputOffset, float[] outputs, int outputOffset)
doFunction
in class PDFFunction
inputs
- an array of m input valuesoutputs
- an array of size n which will be filled
with the output values, or null to return a new arrayinputOffset
- the offset into the inputs array to read fromoutputOffset
- the offset into the output array to write to