![]() |
ICO in BMP konvertieren für 256x256 ICO
Hallo,
ist es möglich eine ICO-Datei (256x256) in eine BMP-Datei zu konvertieren (Delphi 2010)? Mein versuch führt zu einer Exception (out of resources) in der Zeile "Bitmap.Width := Icon.Width;":
Delphi-Quellcode:
Grüße
Procedure ConvertIcoToBmpTest;
var Icon : TIcon; Bitmap : TBitmap; begin Icon := TIcon.Create; try Bitmap := TBitmap.Create; try Icon.LoadFromFile('c:\temp\bigicon.ico') ; Bitmap.Width := Icon.Width; Bitmap.Height := Icon.Height; Bitmap.Canvas.Draw(0, 0, Icon ) ; Bitmap.SaveToFile('c:\temp\bigicon.bmp') ; finally Bitmap.Free; end; finally Icon.Free; end; end; Eric |
AW: ICO in BMP konvertieren für 256x256 ICO
Fals jemand auch das Problem hat
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:16 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