Board index » delphi » canvas.textout not transparent....

canvas.textout not transparent....

I have been playing about with bitmaps and the canvas recently, and
all has been going well, except textout seems to insist on drawing a
background rectangle onto the canvas... Unfortunately I would much
rather have the image behind the text intact...

I'm sure this must have been answered 101 time already, but I can't
find it... can anyone shed any light?

Dodgy.

 

Re:canvas.textout not transparent....


"Dodgy" <Do...@earth.planet.universe> wrote in
news:00obntkcmhpvasciqll154e6pdduhtspgv@4ax.com...

Quote
> I have been playing about with bitmaps and the canvas recently,
> and all has been going well, except textout seems to insist on
> drawing a background rectangle onto the canvas... Unfortunately
> I would much rather have the image behind the text intact...

You have to set
Canvas.Brush.Style:= bsClear;
before using TextOut.

Andy

Re:canvas.textout not transparent....


On Sun, 12 Aug 2001 07:54:18 +0200, "Andreas Haimberger"
<andreas.haimber...@chello.at> waffled on about something:

Quote

>"Dodgy" <Do...@earth.planet.universe> wrote in
>news:00obntkcmhpvasciqll154e6pdduhtspgv@4ax.com...

>> I have been playing about with bitmaps and the canvas recently,
>> and all has been going well, except textout seems to insist on
>> drawing a background rectangle onto the canvas... Unfortunately
>> I would much rather have the image behind the text intact...

>You have to set
>Canvas.Brush.Style:= bsClear;
>before using TextOut.

I knew it'd be something really simple... Ta m8.

Other Threads