THotPDF.RegisterCalRGBColorSpace Method
Registers a reusable cal rgb 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 RegisterCalRGBColorSpace(WhitePointX, WhitePointY, WhitePointZ, GammaR, GammaG, GammaB: Single; const Matrix: array of Single; BlackPointX: Single = 0; BlackPointY: Single = 0; BlackPointZ: Single = 0): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
WhitePointX | Input used by RegisterCalRGBColorSpace |
WhitePointY | Input used by RegisterCalRGBColorSpace |
WhitePointZ | Input used by RegisterCalRGBColorSpace |
GammaR | Input used by RegisterCalRGBColorSpace |
GammaG | Input used by RegisterCalRGBColorSpace |
GammaB | Input used by RegisterCalRGBColorSpace |
Matrix | Input used by RegisterCalRGBColorSpace |
BlackPointX | Input used by RegisterCalRGBColorSpace |
BlackPointY | Input used by RegisterCalRGBColorSpace |
BlackPointZ | Input used by RegisterCalRGBColorSpace |
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