5

I am drawing text on TCanvas using TextOut() but I need a different text color.

What can I do?

Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
sdu
  • 2,740
  • 4
  • 31
  • 30

2 Answers2

13

Change the color of the canvas's Font

Canvas.Font.Color := <whatever>;
sdu
  • 2,740
  • 4
  • 31
  • 30
1

Also You can change canvas style

Canvas.Brush.Style := bsClear;
Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
zokia
  • 63
  • 1
  • 8