TPDFRGBColor

Data types, colour management

Description

TPDFRGBColor is a plain record holding one RGB color as three Double components. Each component ranges from 0 through 1; no color-space object or gamma information is attached, so the meaning of the values depends on the routine that consumes them.

The record is used for rendered color lookup tables, the RGB interpolation helpers, the simple color manager's conversions and renderer color state. TPDFSimpleColorManager.CMYK2RGB, Lab2RGB and XYZ2RGB all return it.

Syntax

Delphi

TPDFRGBColor = Record
  Red: Double;
  Green: Double;
  Blue: Double;
End;

Fields

RedRed component, 0 through 1
GreenGreen component, 0 through 1
BlueBlue component, 0 through 1

Remarks

PLApplyBlackPointCompensation takes the uncompensated source black in this record and rejects a channel below 0 or at 0.999 or above.

PLLookup3DRGB and PLLookup4DCMYKToRGB return their interpolated result in this record; inputs are clamped to 0 through 1 and a grid below 2 or a short table yields three zero components.

Components are doubles rather than bytes, so the record preserves fractional results from interpolation and profile conversion.

The record is three consecutive Double fields, so an array of it is a tightly packed sequence of RGB triples with no padding between entries.

See also

PLApplyBlackPointCompensation, PLLookup3DRGB, PLLookup4DCMYKToRGB, SetBlackPointCompensation