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