CalRgbColorSpace 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 CalRgbColorSpace(
	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#
// register CalRGB color space as a resource
document.ResourceManager.RegisterResource(new CalRgbColorSpace("CS_CALRGB", new double[] { 0.12, 1.0, 0.21 }, new double[] { 0.23, 0.54, 0.78 }));

//set color space
page.Content.SetNonStrokingColorSpace("CS_CALRGB");
page.Content.SetNonStrokingColor(0.67, 0.99, 0.13);

// set color
page.Content.SetStrokingColorSpace("CS_CALRGB");
page.Content.SetStrokingColor(0.4, 0.54, 0.65);
See Also

Reference