PLLookup3DCMYK
Compliance, colour management
Description
Interpolates a CMYK colour out of a three-dimensional RGB-indexed lookup table using trilinear interpolation, with the same axis order, clamping and guard rules as PLLookup3DRGB: red is the fastest axis, inputs are clamped to 0 through 1, and a grid below 2 or a short table yields four zero components.
This is the sampling step for forward RGB to CMYK tables such as the FromSRGBToCMYK set built by PLInitGroupColorLUT for a CMYK blending group.
Syntax
Delphi
Procedure PLLookup3DCMYK(Const Table: Array Of TPDFCMYKColor; Grid: Integer;
R, G, B: Double; Out OutCMYK: TPDFCMYKColor);Parameters
| Table | The Grid by Grid by Grid array of CMYK entries, laid out as ((B * Grid + G) * Grid + R) |
|---|---|
| Grid | Number of grid points per axis |
| R, G, B | The source colour in the RGB index space, each component clamped to 0 through 1 |
| OutCMYK | Receives the weighted result of the eight surrounding cell corners |
See also
ICCComponentTransforms, ICCBasedRendering, ParseICCProfileHeader