Shading Constructor

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

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

public Shading(
	string resourceID,
	string colorSpaceResourceId,
	double[] background = null,
	Boundary boundary = 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.
background (Optional)
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.
boundary (Optional)
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.
See Also