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
PdfColorSpacethe PdfColorSpace object in which colour values shall be expressed.
function
IPdfFunctionthe 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
PdfDictionaryfrom 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
PdfObjectthe PdfObject , that represents color space in which colour values shall be expressed.
function
IPdfFunctionthe 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
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
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
floatthe Xmin coordinate of rectangle.
xmax
floatthe Xmax coordinate of rectangle.
ymin
floatthe Ymin coordinate of rectangle.
ymax
floatthe 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
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)