org.icepdf.core.pobjects.functions
Class Function_4

java.lang.Object
  extended by org.icepdf.core.pobjects.functions.Function
      extended by org.icepdf.core.pobjects.functions.Function_4

public class Function_4
extends Function

Type 4 Function (PDF 1.3), also called a PostScript calculator function, shall be represented as a stream containing code written n a small subset of the PostScript language.

Type 4 functions offer greater flexibility and potentially greater accuracy then exponential functions (type 2 functions). Type 4 functions also make it possible to include a wide variety of halftone spots functions without the loss of accuracy that comes from sampling, and without adding to the list a predefined spot function (10.5.3 spot functions). All of the predefined spot functions can be written as type 4 functions.

Since:
4.2
Author:
ICEsoft Technologies Inc.

Field Summary
 
Fields inherited from class org.icepdf.core.pobjects.functions.Function
domain, functionType, range
 
Constructor Summary
Function_4(Dictionary d)
           
 
Method Summary
 float[] calculate(float[] x)
          Puts the value x thought the function type 4 algorithm.
 
Methods inherited from class org.icepdf.core.pobjects.functions.Function
getDomain, getFunction, getFunctionType, getRange, interpolate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Function_4

public Function_4(Dictionary d)
Method Detail

calculate

public float[] calculate(float[] x)

Puts the value x thought the function type 4 algorithm.

Specified by:
calculate in class Function
Parameters:
x - input values m
Returns:
output values n