Color32

function Color32(rgbColor: Integer): TColor32;


Converts Graphics.TColor values into TColor32 values.

The function will return 'rgbColor' as a fully opaque TColor32 ($FFRRGGBB). If rgbColor is negative, it's assumed to be a predefined Delphi TColor (eg clWhite, clRed, clNavy), otherwise it's assumed to be a COLORREF value ($00BBGGRR).