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
| Name | Purpose |
|---|---|
WhitePointX | Input used by RegisterCalGrayColorSpace |
WhitePointY | Input used by RegisterCalGrayColorSpace |
WhitePointZ | Input used by RegisterCalGrayColorSpace |
Gamma | Input used by RegisterCalGrayColorSpace |
BlackPointX | Input used by RegisterCalGrayColorSpace |
BlackPointY | Input used by RegisterCalGrayColorSpace |
BlackPointZ | Input used by RegisterCalGrayColorSpace |
Return value
Returns an AnsiString value
Usage notes
- Use this API in the graphics and color management workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized
- Register named color resources before using them from page-level painting commands