THotPDF.RegisterCalGrayColorSpace Method

Registers a reusable CalGray colour space resource for the graphics and colour management workflow. Call it before page commands reference the resource name so colour, 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 supplied to RegisterCalGrayColorSpace
WhitePointYInput supplied to RegisterCalGrayColorSpace
WhitePointZInput supplied to RegisterCalGrayColorSpace
GammaInput supplied to RegisterCalGrayColorSpace
BlackPointXInput supplied to RegisterCalGrayColorSpace
BlackPointYInput supplied to RegisterCalGrayColorSpace
BlackPointZInput supplied to RegisterCalGrayColorSpace

Return value

Returns an AnsiString value

Usage notes

Related APIs