Home | GR32 |
Color32ToRGB
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-2007 Alex Denisov and Contributors - Graphics32 v1.8.3 - Build on 4-March-2007