TPDFCMYKColor
Data types, colour management
Description
TPDFCMYKColor is a plain record holding one CMYK color as four Double components. Each component ranges from 0 through 1, including Black, which is stored as an ink fraction rather than a percentage.
The record appears in color lookup tables, the simple color manager's CMYK conversion and renderer color state. It carries no profile or rendering-intent reference; the consumer defines the color space.
Syntax
Delphi
TPDFCMYKColor = Record
Cyan: Double;
Magenta: Double;
Yellow: Double;
Black: Double;
End;Fields
| Cyan | Cyan component, 0 through 1 |
|---|---|
| Magenta | Magenta component, 0 through 1 |
| Yellow | Yellow component, 0 through 1 |
| Black | Black component, 0 through 1 |
Remarks
PLLookup3DCMYK returns the trilinearly interpolated color in this record and writes four zero components when the grid is below 2 or the table is short.
The ICC component transform uses the same unit-range convention and converts CMYK, CMY and five-or-more-channel nCLR values to the CMM's percentage encoding internally.
TPDFSimpleColorManager.CMYK2RGB takes this record as its input and returns a separate TPDFRGBColor value.
The record is four consecutive Double fields, so an array of it is a packed sequence of CMYK quadruples; multiply the components by 100 only for an API that expects percentages.
See also
PLLookup3DCMYK, ICCComponentTransforms, ICCBasedRendering, PLLookup4DCMYKToRGB