ImageEn, unit iexUtils

IEColorToRGB

IEColorToRGB

Declaration

function IEColorToRGB(cl: TColor): TRGB;

Description

Converts a TColor to TRGB.

Example

var
  rgb: TRGB;
begin
  rgb := IEColorToRGB( clRed );
  // Which is the same as rgb := CreateRGB( 255, 0, 0 );
...
end;

See Also

CreateRGB
IERGBToColor
IERGBToRGBA
IERGBAToRGB