GrayColorSpace Constructor

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.Device
Assembly:  Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax

public GrayColorSpace(
	string resourceID
)

Parameters

resourceID
Type: SystemString
The id.
Examples

C#
GrayColorSpace csGray = new GrayColorSpace("CS_GRAY");

// Set color space
page.Content.SetNonStrokingColorSpace("CS_GRAY");
page.Content.SetStrokingColorSpace("CS_GRAY");

// Set color
page.Content.SetNonStrokingColor(0.3);
page.Content.SetStrokingColor(0.6);
See Also

Reference