Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Bitmap und Transparent (https://www.delphipraxis.net/165513-bitmap-und-transparent.html)

ATS3788 3. Jan 2012 17:05

Bitmap und Transparent
 
Delphi-Quellcode:
     
      Image.Picture.Bitmap.Assign( EineBitmap );
      Image.Picture.Bitmap.TransparentColor := Canvas.Pixels[1,1]; // Weiss ich brauche ich nicht
      Image.Picture.Bitmap.Transparent := true;
      Image.Picture.Bitmap.TransparentMode := tmFixed;
      Image.Transparent := true;
Hallo und frohes neues Jahr
ich sehe den Wald vor lauter Bäumen nicht.

Da sollte doch die Bitmap im TImage transparent sein, welche
die Farbe am Punkt 1 ,1 hat. Ist sie aber nicht.

Martin Michael

DeddyH 3. Jan 2012 17:28

AW: Bitmap und Transparent
 
Bist Du sicher, dass Du den richtigen Canvas auswertest? :zwinker:

ATS3788 3. Jan 2012 21:52

AW: Bitmap und Transparent
 
Gute Frage!

Aber das hört sich gut an.

Wird der Canvas vom TForm sein

ATS3788 3. Jan 2012 22:33

AW: Bitmap und Transparent
 
Habe es jetzt rausbekommen

es war eine 32 bit Bitmap,
keine Transparent, abgeändert in 24 bit
und das geht.

Zitat:

Tja das ist der Frust des Programmierens
Danke DeddyH


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