THotPDF.RegisterCalGrayColorSpace Method

Registers a reusable cal gray color space resource for the graphics and color management workflow. Call it before page commands reference the resource name so color, pattern, font, image, or profile data is available in the PDF resource tree

Declaration

function RegisterCalGrayColorSpace(WhitePointX, WhitePointY, WhitePointZ: Single; Gamma: Single = 2.2; BlackPointX: Single = 0; BlackPointY: Single = 0; BlackPointZ: Single = 0): AnsiString;

Unit

HPDFDoc

Parameters

NamePurpose
WhitePointXInput used by RegisterCalGrayColorSpace
WhitePointYInput used by RegisterCalGrayColorSpace
WhitePointZInput used by RegisterCalGrayColorSpace
GammaInput used by RegisterCalGrayColorSpace
BlackPointXInput used by RegisterCalGrayColorSpace
BlackPointYInput used by RegisterCalGrayColorSpace
BlackPointZInput used by RegisterCalGrayColorSpace

Return value

Returns an AnsiString value

Usage notes

Related APIs