![]() |
Icon in TBitmap umwandeln
Hier die Lösung, man Gibt den Pfad eines Icons an und bekommt ein TBitmap zurück:
Delphi-Quellcode:
[edit=flomei] Mfg, flomei[/edit]
function icotobmp(filename: string): tbitmap;
var Icon: TIcon; begin Icon := TIcon.Create; result := TBitmap.create; try Icon.LoadFromFile(filename); result.Width := Icon.Width; result.Height := Icon.Height; result.Canvas.Draw(0, 0, Icon); finally Icon.Free; end; end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:43 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