ImageEn, unit hyieutils

TRGB2TColor

TRGB2TColor


Declaration


function TRGB2TColor(rgb: TRGB): TColor;


Description


Converts a TRGB color to TColor.


Example


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


See Also


- CreateRGB
- TColor2TRGB