ImageEn, unit hyiedefs

TRGB


Declaration

TRGB = packed record
  b: byte;
  g: byte;
  r: byte;

  function ToColor(): TColor;
end;


Description

Stores a color as 8bit Red, Green and Blue channels.

The following operations are supported:

if rgb = rgb then...
if rgb <> rgb then...
rgb := TRGB( MyTColor );
MyTColor := rgb.ToColor;

Note: ImageEn visualizers allow you to see a human-readable value when hovering over a color value. You can also click for a preview:



See Also

CreateRGB
TRGB2TColor
TRGB2TRGBA
TColor2TRGB
TRGBA2TRGB