THotPDF.RegisterCalRGBColorSpace Method
Registers a reusable CalRGB 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 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 supplied to RegisterCalRGBColorSpace |
WhitePointY | Input supplied to RegisterCalRGBColorSpace |
WhitePointZ | Input supplied to RegisterCalRGBColorSpace |
GammaR | Input supplied to RegisterCalRGBColorSpace |
GammaG | Input supplied to RegisterCalRGBColorSpace |
GammaB | Input supplied to RegisterCalRGBColorSpace |
Matrix | Input supplied to RegisterCalRGBColorSpace |
BlackPointX | Input supplied to RegisterCalRGBColorSpace |
BlackPointY | Input supplied to RegisterCalRGBColorSpace |
BlackPointZ | Input supplied to RegisterCalRGBColorSpace |
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