TPLICCComponentValues
Data types, colour management
Description
TPLICCComponentValues is a dynamic array of Double that carries interleaved color component tuples. TPDFICCComponentTransform uses it for the converted output of one or more pixels; the length is the pixel count multiplied by the destination component count.
Device components use the unit range 0 through 1, including all four CMYK channels. Lab components map 0 through 1 to L* 0 through 100 and a*, b* -128 through 127; XYZ components map 0 through 1 to 0 through 1.99997.
The array holds no component-count metadata, so the caller must retain the destination count from OutputComponents when walking the result. Values are decoded from the CMM encoding and clamped back into the unit range after conversion.
Syntax
Delphi
TPLICCComponentValues = array of Double;Remarks
The array is zero-based and sized by Transform from the destination profile; do not pre-size it.
The same variable can be passed as both input samples and output, because Transform retains aliased input storage before clearing the output.
There is no per-pixel record type: walk the array in blocks of OutputComponents to visit one converted tuple at a time.
An empty input succeeds with an empty result: zero pixels produce a zero-length destination array.
On failure Transform clears the array to nil and leaves the diagnostic in LastError.
See also
Transform, ICCComponentTransforms, PLPureICCTransformComponents