PLLookup4DCMYKToRGB
Compliance, colour management
Description
Interpolates an RGB colour out of a four-dimensional CMYK-indexed lookup table using quadrilinear interpolation across the sixteen corners of the surrounding hypercell. Cyan is the fastest axis and black the slowest, matching the FromCMYKToSRGB layout built by PLInitGroupColorLUT, and all four inputs are clamped to 0 through 1 first.
When Grid is below 2 or the table holds fewer than Grid to the fourth entries, the result is black.
Syntax
Delphi
Procedure PLLookup4DCMYKToRGB(Const Table: Array Of TPDFRGBColor; Grid: Integer;
C, M, Y, K: Double; Out OutRGB: TPDFRGBColor);Parameters
| Table | The Grid by Grid by Grid by Grid array of RGB entries, laid out as (((K * Grid + Y) * Grid + M) * Grid + C) |
|---|---|
| Grid | Number of grid points per axis; 13 for the group colour LUTs |
| C, M, Y, K | The source colour, each component clamped to 0 through 1 |
| OutRGB | Receives the weighted result of the sixteen surrounding hypercell corners |
See also
ICCComponentTransforms, ICCBasedRendering, ParseICCProfileHeader