LabColorSpace Constructor (String, Double, 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: (

public LabColorSpace(
	string resourceID,
	double[] whitePoint,
	double[] blackPoint,
	double[] range


Type: SystemString
The id.
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.
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].
Type: SystemDouble
The range. An array of four numbers [amin amax bmin bmax] that shall specify the range of valid values for the a* and b* (B and C) components of the colour space—that is, amin <= a* <= amax and bmin <= b* <= bmax Component values falling outside the specified range shall be adjusted to the nearest valid value without error indication. Default value: [−100 100 −100 100].

// register LAB color space as a resource
document.ResourceManager.RegisterResource(new LabColorSpace("CS_LAB", new double[] { 2.42, 1.0, 0.81 }, new double[] { 0.72, 0.09, 0.31 }, new double[]{-10,10,-10,10}));

// set color space
page.Content.SetNonStrokingColor(333, 456, 123);

// set color
page.Content.SetStrokingColor(45, -124, 90);
See Also