Table of Contents

Class PdfType2Function

Namespace
iText.Kernel.Pdf.Function
Assembly
itext.kernel.dll

This class represents Pdf type 2 function that defines an exponential interpolation of one input value to n output values.

public class PdfType2Function : AbstractPdfFunction<PdfDictionary>, IPdfFunction
Inheritance
PdfType2Function
Implements
Inherited Members

Remarks

This class represents Pdf type 2 function that defines an exponential interpolation of one input value to n output values.

For more info see ISO 32000-1, section 7.10.3 "Type 2 (Exponential Interpolation) Functions".

Constructors

PdfType2Function(double[], double[], double[], double[], double)

public PdfType2Function(double[] domain, double[] range, double[] c0, double[] c1, double n)

Parameters

domain double[]
range double[]
c0 double[]
c1 double[]
n double

PdfType2Function(float[], float[], float[], float[], double)

public PdfType2Function(float[] domain, float[] range, float[] c0, float[] c1, double n)

Parameters

domain float[]
range float[]
c0 float[]
c1 float[]
n double

PdfType2Function(PdfDictionary)

Instantiates a new PdfType2Function instance based on passed PdfDictionary instance.

public PdfType2Function(PdfDictionary dict)

Parameters

dict PdfDictionary

the function dictionary

Methods

Calculate(double[])

public override double[] Calculate(double[] input)

Parameters

input double[]

Returns

double[]

GetC0()

Gets values of C0 array.

public double[] GetC0()

Returns

double[]

the values of C0 array

GetC1()

Gets values of C1 array.

public double[] GetC1()

Returns

double[]

the values of C1 array

GetN()

Gets value of N field.

public double GetN()

Returns

double

the value of N field

GetOutputSize()

Gets output size of function.

public override sealed int GetOutputSize()

Returns

int

output size of function

Remarks

Gets output size of function.

If Range field is absent, the size of C0 array will be returned.

SetC0(double[])

Sets values of C0 array.

public void SetC0(double[] value)

Parameters

value double[]

the values of C0 array

SetC1(double[])

Sets values of C1 array.

public void SetC1(double[] value)

Parameters

value double[]

the values of C1 array

SetN(double)

sets value of N field.

public void SetN(double value)

Parameters

value double

the value of N field