Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Text auf eine transparente Grafik zeichnen. (https://www.delphipraxis.net/156069-text-auf-eine-transparente-grafik-zeichnen.html)

Deep-Sea 18. Nov 2010 15:02

Text auf eine transparente Grafik zeichnen.
 
Ich glaube ich befinde mich aktuell wieder in einer Phase, wo einfach nichts klappen will :roll:

Eig. will ich etwas ganz simples, aber es klappt nicht:
Ich möchte - z.B. mit Canvas.TextOut ö.ä. - einen Text auf eine Grafik mit Alphakanal ausgeben. Welches Grafikformat ist mir eig. egal, habe es schon mit 32-bit Bitmaps und mit PNG versucht. Das Problem ist aber, dass beim Zeichnen der Alphakanal nicht berücksichtigt wird, so dass der Text dann eben 100%ig transparent und somit unsichtbar ist. :cry:


"Du verlangst das unmögliche!"
"Darum... darum versagst du."

Bummi 18. Nov 2010 16:09

AW: Text auf eine transparente Grafik zeichnen.
 
nimm GDI+ hier wird der Alphakanal berücksichtigt

EDIT:

http://www.progdigy.com/?page_id=7

3 Units im Suchpfad, keine Installation, Free, Demos sind enthalten

Deep-Sea 18. Nov 2010 16:12

AW: Text auf eine transparente Grafik zeichnen.
 
Mhh ...
Gibt es eine fertige Unit, die die ganzen Konstanten, Header, etc. dafür schon implementiert?

Bummi 18. Nov 2010 16:15

AW: Text auf eine transparente Grafik zeichnen.
 
steht im Edit ... ich wolte nicht mehr ohne :thumb:


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:14 Uhr.

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