Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Wiedermal TImage und Transparent (https://www.delphipraxis.net/22678-wiedermal-timage-und-transparent.html)

daniel8520 21. Mai 2004 11:20


Wiedermal TImage und Transparent
 
Hallo,

also irgendwie werd ich aus den ganzen Einträgen hier in der DP nicht schlau.
Ich wollte ein Bild in ein TImage laden, und dann eine bestimmte Farbe "transparent" machen, also so, dass man das, was hinter dem TImage liegt sieht.
Hab das wie folgt probiert:
Delphi-Quellcode:
Image1.Picture.Bitmap.LoadFromFile('C:\Gitter.bmp');
   Image1.Picture.Bitmap.TransparentColor := clWhite;
Allerdings flimmert das Bild nur kurz auf, und nichts ändert sich.

Kann mir bitte jemand weiterhelfen?

S2B 21. Mai 2004 13:15

Re: Wiedermal TImage und Transparent
 
Also wenn du eine Farbe im TImage transparent machen willst, dann musst du
Delphi-Quellcode:
Image1.Transaprent:=true;
machen! Dann wird die Farbe des Pixels links oben im ganzen Bild transparent...


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:25 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