[Lazarus] TColor($RRGGBB) -> TColor($BBGGRR)

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue Sep 27 17:20:49 CEST 2016


Hi,

I can do the following myself with a simple function, but does LCL
already contain a function that swaps the Red and Blue channel values?

I have many color values defined in RRGGBB format (eg: PDF colors, HTML
colors, fpGUI colors etc), but need to convert it to a compatible LCL
TColor where the format is BBGGRR.


Regards,
  Graeme



More information about the Lazarus mailing list