Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's Code Snippets.

 

 

 

ColorToRgb

 

Converts a TColor value to its RGB values. To convert RGB values to a TColor, use the RgbToColor function.

 

* View the code of 'ColorToRgb' in plain text.

 

//From http://www.richelbilderbeek.nl

void ColorToRgb(

const TColor color,

unsigned char& red,

unsigned char& green,

unsigned char& blue )

{

red = GetRValue(color);

green = GetGValue(color);

blue = GetBValue(color);

}

 

 

 

Go back to Richel Bilderbeek's Code Snippets.

Go back to Richel Bilderbeek's homepage.