CalGrayColorSpace Constructor (String, Double, Double)

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

Namespace:  Apitron.PDF.Kit.FixedLayout.Resources.ColorSpaces.CIEBased
Assembly:  Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax

public CalGrayColorSpace(
	string resourceID,
	double[] whitePoint,
	double[] blackPoint
)

Parameters

resourceID
Type: SystemString
The resource ID.
whitePoint
Type: SystemDouble
The white point is an array of three numbers [XW YW ZW] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point. The numbers XW and ZW shall be positive, and YW shall be equal to 1.0.
blackPoint
Type: SystemDouble
The black point is an array of three numbers [XB YB ZB] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point. All three of these numbers shall be non-negative. Default value: [0.0 0.0 0.0].
Examples

C#
CalGrayColorSpace csCalGray = new CalGrayColorSpace("CS_CALGRAY", new double[] { 0.0, 1.0, 0.0 }, new double[] { 0.0, 0.0, 0.0 });
// Set color space
page.Content.SetNonStrokingColorSpace("CS_CALGRAY");
page.Content.SetStrokingColorSpace("CS_CALGRAY");

// Set color
page.Content.SetNonStrokingColor(0.67);
page.Content.SetStrokingColor(0.4);
See Also

Reference