Autor Beitrag
Rylon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Di 15.08.06 18:33 
Hallo DF,

ich habe ein Problem mit einem TImage:

Das Icon lässt sich nur in 16 bit speichern -> mit image.picture.icon.savetofile(...);

Habe schon im Forum gesucht und vershcieden Alternativkomponenten gefunden.
Einmal wird eine Speicherrutine erwähnt, mit der man das Icon punkt für Punkt ausließt und das dann irgendwie in die Datei Speichert. -> Genau das suche ich - hat jemand eine rutine mit der ich mit den Übergabewerten Icon:TIcon und Filepath:string das icon in 32 gespeichert bekomme?

Greez Rylon t.H.D.

PS: Danke schon im Vorraus ;-)
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 15.08.06 19:38 
Moin!

Dann speichere es doch als Bitmap, das sollte dann in 32bit-Farbtiefe möglich sein (ggfs. vorher in ein entsprechend vorbereitetes Image neu zeichnen):
ausblenden Delphi-Quelltext
1:
Image1.Picture.Bitmap.SaveToFile()					

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Rylon Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Di 15.08.06 19:51 
Titel: Schlecht
Das ist Schlecht, da ich .ico benötige -> wie schon gesagt hatte jemand gepostet, das mann das "manuel" speichern könnte!
Zur Not Speichere ich es als bmp und konvertier es dann - meine in swissdelpicenter da was gesehen zu haben

Greez Rylon

PS: Aber Danke für die schnelle Antwort
Rylon Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Sa 19.08.06 21:51 
Titel: Hat sich nach Suchen in delphi-praxis gelöst
Hat sich nach Suchen in delphi-praxis gelöst:

Alle mit dem gleichen Problem:
www.angelfire.com/hi...izeus/saveicons.html

Grüße Rylon t.H.D.