Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TColor32EntryType

TColor32Entry

32-bit ARGB color record.

Declaration ​

pascal
type
  TColor32Entry = packed record
    case Integer of
{$IFNDEF RGBA_FORMAT}
      0: (B, G, R, A: Byte);
{$ELSE}
      0: (R, G, B, A: Byte);
{$ENDIF}
      1: (ARGB: TColor32);
      2: (Planes: array[0..3] of Byte);
      3: (Components: array[TColor32Component] of Byte);
  end;
  PColor32Entry = ^TColor32Entry;

Description ​

TColor32Entry is a packed variant record providing multi-view field access to individual 8-bit color channels, the combined 32-bit TColor32 ARGB value, raw byte planes, or enum-indexed color components.

Variant Fields ​

case 0

FieldTypeDescription
BByteBlue channel byte (0..255).
GByteGreen channel byte (0..255).
RByteRed channel byte (0..255).
AByteAlpha channel byte (0..255).

case 1

FieldTypeDescription
ARGBTColor32Combined 32-bit ARGB color integer.

case 2

FieldTypeDescription
Planesarray[0..3] of ByteArray view of 4 byte planes.

case 3

FieldTypeDescription
Componentsarray[TColor32Component] of ByteIndexed access by TColor32Component enum (ccBlue, ccGreen, ccRed, ccAlpha).