multivalent.std.adaptor.pdf

Class Function

public abstract class Function extends Object

Function objects: sampled (type 0), exponential (2), stitching (3), PostScript calculator (4). Used by colorspaces and shading.

Version: $Revision: 1.9 $ $Date: 2003/08/29 04:03:04 $

Method Summary
abstract voidcompute(float[] input, float[] output)
Compute the function from input and placing result in output.
static FunctiongetInstance(Object dictref, PDFReader pdfr)
Returns function instance corresponding to dictref, which should get an IRef or a Dict if the function is specified directly.
intgetM()
Returns input arity.
intgetN()
Returns output arity.

Method Detail

compute

public abstract void compute(float[] input, float[] output)
Compute the function from input and placing result in output.

getInstance

public static Function getInstance(Object dictref, PDFReader pdfr)
Returns function instance corresponding to dictref, which should get an IRef or a Dict if the function is specified directly.

getM

public int getM()
Returns input arity.

getN

public int getN()
Returns output arity.