FunctionShading Constructor

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
Initializes a new instance of the FunctionShading class.

Namespace:  Apitron.PDF.Kit.FixedLayout.Resources.Shadings
Assembly:  Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: (

public FunctionShading(
	string resourceId,
	string colorSpaceResourceId,
	Boundary boundary,
	double[] background,
	string[] functionIds,
	double[] domain = null,
	double[] matrix = null


Type: SystemString
The resource id.
Type: SystemString
The color space resource ID. The colour space in which colour values shall beexpressed. This may be any device, CIE-based, or special colour space except a Pattern space.
Type: Apitron.PDF.Kit.FixedLayoutBoundary
An array of four numbers giving the left, bottom, right, and top coordinates, respectively, of the shading’s bounding box. The coordinates shall be interpreted in the shading’s target coordinate space. If present, this bounding box shall be applied as a temporary clipping boundary when the shading is painted, in addition to the current clipping path and any other clipping boundaries in effect at that time.
Type: SystemDouble
An array of colour components appropriate to the colour space, specifying a single background colour value. If present, this colour shall be used, before any painting operation involving the shading, to fill those portions of the area to be painted that lie outside the bounds of the shading object.
Type: SystemString
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.
domain (Optional)
Type: SystemDouble
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].
matrix (Optional)
Type: SystemDouble
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]. NOTE : To map the domain rectangle [0.0 1.0 0.0 1.0] to a 1-inch square with lower-left corner at coordinates (100, 100) in default user space, the Matrix value would be [72 0 0 72 100 100].
See Also