Table of Contents

Class PdfShading.FunctionBased

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

The class that extends PdfShading class and is in charge of Shading Dictionary with function-based type, that defines color at every point in the domain by a specified mathematical function.

public class PdfShading.FunctionBased : PdfShading
Inheritance
PdfShading.FunctionBased
Inherited Members

Constructors

FunctionBased(PdfColorSpace, IPdfFunction)

Creates the new instance of the class.

public FunctionBased(PdfColorSpace colorSpace, IPdfFunction function)

Parameters

colorSpace PdfColorSpace

the PdfColorSpace object in which colour values shall be expressed.

function IPdfFunction

the IPdfFunction , that is used to calculate color transitions.

FunctionBased(PdfDictionary)

Creates the new instance of the class from the existing PdfDictionary.

protected FunctionBased(PdfDictionary pdfDictionary)

Parameters

pdfDictionary PdfDictionary

from which this PdfShading.FunctionBased will be created

FunctionBased(PdfObject, IPdfFunction)

Creates the new instance of the class.

public FunctionBased(PdfObject colorSpace, IPdfFunction function)

Parameters

colorSpace PdfObject

the PdfObject , that represents color space in which colour values shall be expressed.

function IPdfFunction

the IPdfFunction , that is used to calculate color transitions.

Methods

GetDomain()

Gets the PdfArray domain rectangle object that establishes an internal coordinate space for the shading that is independent of the target coordinate space in which it shall be painted.

public virtual PdfArray GetDomain()

Returns

PdfArray

PdfArray domain rectangle.

GetMatrix()

Gets the PdfArray of floats that represents the transformation matrix that maps the domain rectangle into a corresponding figure in the target coordinate space.

public virtual PdfArray GetMatrix()

Returns

PdfArray

the PdfArray of transformation matrix (identical matrix by default).

SetDomain(float, float, float, float)

Sets the PdfArray domain rectangle object that establishes an internal coordinate space for the shading that is independent of the target coordinate space in which it shall be painted.

public virtual void SetDomain(float xmin, float xmax, float ymin, float ymax)

Parameters

xmin float

the Xmin coordinate of rectangle.

xmax float

the Xmax coordinate of rectangle.

ymin float

the Ymin coordinate of rectangle.

ymax float

the Ymax coordinate of rectangle.

SetDomain(PdfArray)

Sets the PdfArray domain rectangle object that establishes an internal coordinate space for the shading that is independent of the target coordinate space in which it shall be painted.

public virtual void SetDomain(PdfArray domain)

Parameters

domain PdfArray

the PdfArray domain rectangle object to be set.

SetMatrix(float[])

Sets the array of floats that represents the transformation matrix that maps the domain rectangle into a corresponding figure in the target coordinate space.

public virtual void SetMatrix(float[] matrix)

Parameters

matrix float[]

the float[] of transformation matrix to be set.

SetMatrix(PdfArray)

Sets the array of floats that represents the transformation matrix that maps the domain rectangle into a corresponding figure in the target coordinate space.

public virtual void SetMatrix(PdfArray matrix)

Parameters

matrix PdfArray

the PdfArray transformation matrix object to be set.