The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function ReverseRGBColor (Cl: TColor): TColor;

The usage of RGB colors is not consistent throughout all programs and machines. Some use the order RGB, others the order BGR. In order to cope with such situations you can use the function ReverseRGBColor which exchanges the R (red) and B (blue) values of the color Cl and returns the reversed color.

Hint: Please note that reversing the RGB order is not the same as inverting a color.

Last Update: 2015-Mai-11