//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); }