Autor Beitrag
John Sanson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72

WinXP,WinVista
Delphi(BDS2006, 5), C#(VS2005, BDS2006), VB6
BeitragVerfasst: Do 24.05.07 14:28 
Hallo,

ich möchte ein Image oder Bitmap in Icon konvertieren.

Leider geht es so nicht:
ausblenden C#-Quelltext
1:
  System.Drawing.Icon icon = (System.Drawing.Icon)image;					


Der Image Konverter half mir auch nicht weiter.
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Do 24.05.07 20:53 
Bitmap.GetHicon() sollte die Methode deiner Wahl sein, ein Beispiel findest du direkt im entsprechenden Hilfeeintrag.

Moderiert von user profile iconChristian S.: C#-Tags korrigiert
John Sanson Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72

WinXP,WinVista
Delphi(BDS2006, 5), C#(VS2005, BDS2006), VB6
BeitragVerfasst: Fr 25.05.07 15:39 
ne das geht in die falsche Richtung. Ich will von Bitmap oder Image nach Icon, nicht umgedreht.
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Fr 25.05.07 15:51 
Und genau diese Richtung vollbringt GetHicon(). Die Umkehrung wäre Icon.ToBitmap().