ToTColor

ToTColor converts a palette color to an RGB color.

TColor __fastcall ToTColor(int color);

Description

Use ToTColor to convert an 8-bit palette color specified by color to a color of TColor. ToTColor can also be used before the Ivory Draw component is activated by Active=true, but it requires that a palette is assigned to the Palette property.

If you're using TIvoryCanvas to draw on a surface, you definitely need to specify a color of type TColor. Use ToTColor to convert a palette color to type TColor.

Back to TIvoryDraw