E
Edwin Knoppert
I'm trying to convert an icon handle to GIF.
Something like:
Public Function GetImageFromIconHandle(ByVal hIcon As Int32) As Int32
Dim ico As Icon = Icon.FromHandle(hIcon)
Dim x As New Drawing.IconConverter
'x.ConvertTo(ico,typeof(System.Drawing.Imaging.ImageFormat.Gif) )
End Function
x.ConvertTo(ico, <requires a system.type> )
I don't know how to do that.
Important is that a transparent icon should remain transparent.
hIcon is a valid 16x16 icon.
Something like:
Public Function GetImageFromIconHandle(ByVal hIcon As Int32) As Int32
Dim ico As Icon = Icon.FromHandle(hIcon)
Dim x As New Drawing.IconConverter
'x.ConvertTo(ico,typeof(System.Drawing.Imaging.ImageFormat.Gif) )
End Function
x.ConvertTo(ico, <requires a system.type> )
I don't know how to do that.
Important is that a transparent icon should remain transparent.
hIcon is a valid 16x16 icon.