CalRgbColorSpace Constructor (String, Double)

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
Initializes a new instance of the ColorSpace 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
)

Parameters

resourceID
Type: SystemString
The 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.
Examples

C#
// register color space as a resource
document.ResourceManager.RegisterResource(new CalRgbColorSpace("CS_CALRGB", new double[] { 0.12, 1.0, 0.21 }));

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