LabColorSpace Constructor (String, Double, Double)

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
Initializes a new instance of the LabColorSpace 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 LabColorSpace(
	string resourceID,
	double[] whitePoint,
	double[] blackPoint
)

Parameters

resourceID
Type: SystemString
The id.
whitePoint
Type: SystemDouble
The white point. An array of three numbers [XW YW ZW] that shall specify 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 1.0.
blackPoint
Type: SystemDouble
The black point. An array of three numbers [XB YB ZB] that shall specify 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 LAB color space as a resource
document.ResourceManager.RegisterResource(new LabColorSpace("CS_LAB", new double[] { 2.72, 1.0, 0.81 }, new double[] { 0.72, 0.09, 0.31 }));

// set color space
page.Content.SetNonStrokingColorSpace("CS_LAB");
page.Content.SetNonStrokingColor(67, -49, 13);

// set color
page.Content.SetStrokingColorSpace("CS_LAB");
page.Content.SetStrokingColor(-49, 44, 15);
See Also

Reference