Dave
12-20-2011, 10:39 PM
You'll have to convert the colorformat from the FontDialog from BGR to RGBA like so for example:
int red=FontDialog1->Font->Color&0x0FF;
int green=(FontDialog1->Font->Color&0x0FF00)>>8;
int blue=(FontDialog1->Font->Color&0x0FF0000)>>16;
TColor col=0x0FF000000+blue+(green<<8)+(red<<16);
VLDrawTextLayer1->Font->Brush->Color=col;
Regards,
Dave
int red=FontDialog1->Font->Color&0x0FF;
int green=(FontDialog1->Font->Color&0x0FF00)>>8;
int blue=(FontDialog1->Font->Color&0x0FF0000)>>16;
TColor col=0x0FF000000+blue+(green<<8)+(red<<16);
VLDrawTextLayer1->Font->Brush->Color=col;
Regards,
Dave