![]() |
Icons erstellen
Hey Leute
Ich möchte gerne ein Progrämmchen schreiben, mit dem man Icons erstellen kann. Nur: wie speichern, damit das Icon gültig ist? Kann ich dafür ein TImage und dann das Bmp irgendwie in ein *.ico konvertieren? Oder wie geht das? :gruebel: Danke im Voraus :hi: |
Re: Icons erstellen
Nutz doch einfach TIcon. Dann kannst du mit SaveToFile/Stream speichern...
|
Re: Icons erstellen
Das Problem ist, wie kann ich in ein TImage zeichnen (oder sonst wohin) und es dann als Icon speichern?
|
Re: Icons erstellen
Hi. Was mich interessieren würde: Kann man mit einem TIcon auch Xp Icons erstellen?
|
Re: Icons erstellen
Probier es mal so:
Delphi-Quellcode:
anIcon := TIcon.Create;
anIcon.Assign(Image1.Picture); anIcon.SaveToFile('c:/testicon.ico'); |
Re: Icons erstellen
Das dürft normalerweise nicht funktionieren, weil du ja dann ein TPicture einem TIcon zuweisen willst. :gruebel:
Man liest sich, Stanlay :hi: |
Re: Icons erstellen
Ja, das ist eben das Problem. Obiges funktioniert nur, wenn ein Icon im Image geladen ist.
|
Re: Icons erstellen
Dann wäre es aber überflüssig, das ganze umzuwandeln, wenn es eh schon ein Icon ist :wink:
Aber kann man überhaupt auf ein TIcon direkt zeichnen? :gruebel: |
Re: Icons erstellen
Zitat:
|
Re: Icons erstellen
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:13 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