ImageEn, unit hyieutils

TRGB2TColor


Declaration

function TRGB2TColor(rgb: TRGB): TColor; overload;
function TRGB2TColor(rgba: TRGBA): TColor; overload;


Description

Converts a TRGB color to TColor.


Example

Panel1.Color := TRGB2TColor(CreateRGB(255, 0, 0)); // Panel1.Color will be clRed


See Also

CreateRGB
RGB2TColor
TRGB2TRGBA
TColor2TRGB
TRGBA2TRGB