LabColorSpace 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 LabColorSpace(
	string resourceID,
	double[] whitePoint
)

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.
Examples

C#
// register LAB color space as a resource
document.ResourceManager.RegisterResource(new LabColorSpace("CS_LAB", new double[] { 2.72, 1.0, 0.81 }));

// 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