Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) ColorToRgb

 

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

 

//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 C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml