procedure Color32ToRGB(Color32: TColor32; var R, G, B: Byte);
procedure Color32ToRGBA(Color32: TColor32; var R, G, B, A: Byte);
Both procedures split the Color32 parameter up into their respective components.
These procedures are provided for convenience only. Use direct conversion in performance-critical parts of your code:
Alpha := Color32 shr 24;
Red := (Color32 and $00FF0000) shr 16;
Green := (Color32 and $0000FF00) shr 8;
Blue := Color32 and $000000FF;
Copyright ©2000-2024 Alex Denisov and the Graphics32 Team - Graphics32 2.0 - Help file built on 18 Feb 2024