iText 8.0.2 API
iText.Kernel.Pdf.Function.PdfType2Function Class Reference

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

Inheritance diagram for iText.Kernel.Pdf.Function.PdfType2Function:
iText.Kernel.Pdf.Function.AbstractPdfFunction< PdfDictionary >

Public Member Functions

  PdfType2Function (PdfDictionary dict)
  Instantiates a new PdfType2Function instance based on passed PdfDictionary instance. More...
 
  PdfType2Function (double[] domain, double[] range, double[] c0, double[] c1, double n)
 
  PdfType2Function (float[] domain, float[] range, float[] c0, float[] c1, double n)
 
override double[]  Calculate (double[] input)
  Calculates one set of input components to one set of output components. More...
 
sealed override int  GetOutputSize ()
  Gets output size of function. More...
 
double[]  GetC0 ()
  Gets values of C0 array. More...
 
void  SetC0 (double[] value)
  Sets values of C0 array. More...
 
double[]  GetC1 ()
  Gets values of C1 array. More...
 
void  SetC1 (double[] value)
  Sets values of C1 array. More...
 
double  GetN ()
  Gets value of N field. More...
 
void  SetN (double value)
  sets value of N field. More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.Function.AbstractPdfFunction< PdfDictionary >
virtual int  GetFunctionType ()
  The function type, (see ISO-320001 Table 38). More...
 
virtual bool  CheckCompatibilityWithColorSpace (PdfColorSpace alternateSpace)
  Chacks wether the output of the function matches in components with the passed by color space. More...
 
virtual int  GetInputSize ()
  The number of input components. More...
 
virtual double[]  GetDomain ()
  The valid input domain, input will be clipped to this domain contains a min max pair per input component. More...
 
virtual void  SetDomain (double[] value)
  The valid input domain, input will be clipped to this domain contains a min max pair per input component. More...
 
virtual double[]  GetRange ()
  the valid output range, output will be clipped to this range contains a min max pair per output component. More...
 
virtual void  SetRange (double[] value)
  the valid output range, output will be clipped to this range contains a min max pair per output component. More...
 
virtual byte[]  CalculateFromByteArray (byte[] bytes, int offset, int length, int wordSizeInputLength, int wordSizeOutputLength)
  Performs the calculation in bulk on a set of raw data and returns a new set of raw data. More...
 
virtual byte[]  CalculateFromByteArray (byte[] bytes, int offset, int length, int wordSizeInputLength, int wordSizeOutputLength, BaseInputOutPutConvertors.IInputConversionFunction inputConvertor, BaseInputOutPutConvertors.IOutputConversionFunction outputConvertor)
  Performs the calculation in bulk on a set of raw data and returns a new set of raw data. More...
 
virtual double[]  ClipInput (double[] input)
  Clip input values to the allowed domain. More...
 
virtual double[]  ClipOutput (double[] input)
  Clip output values to the allowed range, if there is a range. More...
 
virtual PdfObject  GetAsPdfObject ()
 

Detailed Description

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

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".

Constructor & Destructor Documentation

◆ PdfType2Function()

iText.Kernel.Pdf.Function.PdfType2Function.PdfType2Function ( PdfDictionary  dict )
inline

Instantiates a new PdfType2Function instance based on passed PdfDictionary instance.

Parameters
dict the function dictionary

Member Function Documentation

◆ Calculate()

override double [] iText.Kernel.Pdf.Function.PdfType2Function.Calculate ( double[]  arg1 )
inlinevirtual

Calculates one set of input components to one set of output components.

Parameters
input The input values size must contain GetInputSize() items
Returns
an array the size of GetOutputSize() items containing the result

Implements iText.Kernel.Pdf.Function.AbstractPdfFunction< PdfDictionary >.

◆ GetC0()

double [] iText.Kernel.Pdf.Function.PdfType2Function.GetC0 ( )
inline

Gets values of C0 array.

Returns
the values of C0 array

◆ GetC1()

double [] iText.Kernel.Pdf.Function.PdfType2Function.GetC1 ( )
inline

Gets values of C1 array.

Returns
the values of C1 array

◆ GetN()

double iText.Kernel.Pdf.Function.PdfType2Function.GetN ( )
inline

Gets value of N field.

Returns
the value of N field

◆ GetOutputSize()

sealed override int iText.Kernel.Pdf.Function.PdfType2Function.GetOutputSize ( )
inlinevirtual

Gets output size of function.

Gets output size of function.

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

Returns
output size of function

Reimplemented from iText.Kernel.Pdf.Function.AbstractPdfFunction< PdfDictionary >.

◆ SetC0()

void iText.Kernel.Pdf.Function.PdfType2Function.SetC0 ( double[]  value )
inline

Sets values of C0 array.

Parameters
value the values of C0 array

◆ SetC1()

void iText.Kernel.Pdf.Function.PdfType2Function.SetC1 ( double[]  value )
inline

Sets values of C1 array.

Parameters
value the values of C1 array

◆ SetN()

void iText.Kernel.Pdf.Function.PdfType2Function.SetN ( double  value )
inline

sets value of N field.

Parameters
value the value of N field