How can I change the color of textOut of TCanvas (delphi)?

7.9k Views Asked by At

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

What can I do?

2

There are 2 best solutions below

0
On BEST ANSWER

Change the color of the canvas's Font

Canvas.Font.Color := <whatever>;
0
On

Also You can change canvas style

Canvas.Brush.Style := bsClear;