Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Transparente Schrift (https://www.delphipraxis.net/44056-transparente-schrift.html)

cchris 12. Apr 2005 18:26


Transparente Schrift
 
Hi!
Ich will über eine Selbsgemalte Grafik einen Text Legen.
Ich hab ihn mit TCanvas.TextOut(x,y,Text) ausgegeben, allerdings macht das so ein blödes rechteckiges Kästchen darum. Wie kriegt man das hin, das nur die Schrift an sich ohne dieses Kästchen gemalt wird?

Thebe 12. Apr 2005 18:34

Re: Transparente Schrift
 
TCanvas.TextMode

Das is ne Bitmaske, da musst Du das Flag ETO_OPAQUE raushauen.

SirThornberry 12. Apr 2005 18:38

Re: Transparente Schrift
 
oder noch einfacher
Delphi-Quellcode:
  Canvas.Brush.Style := bsClear;


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:13 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz