Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Bitmap transparent aus TImageList holen (https://www.delphipraxis.net/199882-bitmap-transparent-aus-timagelist-holen.html)

EWeiss 1. Mär 2019 14:31

AW: Bitmap transparent aus TImageList holen
 
Zitat:

Zitat von amigage (Beitrag 1426746)
Du hast Recht, es funktioniert :thumb:
Also, erst die ImageList transparent setzen lassen und dann ganz normal die Listview füllen.
Jetzt habe ich es verstanden.

Na da bin ich ja froh! Und hoffe das jetzt alles Transparent ist. :)
Zitat:

Sorry, wenn ich dich aufgrund meiner Unwissenheit genervt haben sollte
Kein Problem.

Zitat:

Erstens, wäre die Lösung über einen MemoryStream eleganter, aber eine solche Funktion scheint es wohl nicht in GDI zu geben?
Du meinst wohl GDI+ und klar gibt es das..

Delphi-Quellcode:
  function TGPBitmap.FromStream(stream: IStream; useEmbeddedColorManagement: BOOL = FALSE): TGPBitmap;
  begin
    result := TGPBitmap.Create(
        stream,
        useEmbeddedColorManagement
    );
  end;
Natürlich musst du dann den Stream vorher erst erstellen!
Informiere dich deshalb mal im INet.
Sorry ist mir jetzt zu viel Aufwand weil ich an meinem eigenen Projekt am Arbeiten bin.

PS:
Was ich dir noch mitgeben kann..
Delphi-Quellcode:
GdipLoadImageFromStream
GdipCreateBitmapFromStream > sollte damit gleichzusetzen sein. TGPBitmap.FromStream
gruss


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:52 Uhr.
Seite 3 von 3     123   

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