[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppClxTColor
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppClxTColor
(C++ CLX) TColor
A data type holding a color. Use the RGB macro to convert three unsigned chars to their TColor value.
//Plain use
Form1->Color = clLime;
//Using RGB macro
const unsigned int maxx = PaintBox1->Width;
const unsigned int maxy = PaintBox1->Height;
for (int y = 0; y != maxy; ++y)
{
for (int x = 0; x != maxx; ++x)
{
PaintBox1->Canvas->Pixels[x][y] = RGB(x,y,x+y);
} //Next y
} //Next x
'TColor' links
- C++ VCL
- Pascal CLX
- Pascal VCL
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
