Class FunctionBasedShading
Function-based shadings (type 1) define the colour of every point in the domain using a mathematical function (not necessarily smooth or continuous).
public sealed class FunctionBasedShading : Shading
- Inheritance
-
FunctionBasedShading
- Inherited Members
Constructors
FunctionBasedShading(bool, DictionaryToken, ColorSpaceDetails, PdfRectangle?, double[], double[], TransformationMatrix, PdfFunction[])
Create a new FunctionBasedShading.
public FunctionBasedShading(bool antiAlias, DictionaryToken shadingDictionary, ColorSpaceDetails colorSpace, PdfRectangle? bbox, double[] background, double[] domain, TransformationMatrix matrix, PdfFunction[] functions)
Parameters
antiAlias
boolshadingDictionary
DictionaryTokencolorSpace
ColorSpaceDetailsbbox
PdfRectangle?background
double[]domain
double[]matrix
TransformationMatrixfunctions
PdfFunction[]
Properties
Domain
(Optional) An array of four numbers [xmin xmax ymin ymax] specifying the rectangular domain of coordinates over which the colour function(s) are defined.
Default value: [0.0 1.0 0.0 1.0].
public double[] Domain { get; }
Property Value
- double[]
Functions
(Required) A 2-in, n-out function or an array of n 2-in, 1-out functions (where n is the number of colour components in the shading dictionary's colour space). Each function's domain shall be a superset of that of the shading dictionary. If the value returned by the function for a given colour component is out of range, it shall be adjusted to the nearest valid value.
public override PdfFunction[] Functions { get; }
Property Value
Matrix
(Optional) An array of six numbers specifying a transformation matrix mapping the coordinate space specified by the Domain entry into the shading's target coordinate space.
Default value: the identity matrix [1 0 0 1 0 0].
public TransformationMatrix Matrix { get; }