I'm getting icon from another application using this:
Icon IEIcon = Icon.ExtractAssociatedIcon(@"C:\Program Files\Internet Explorer\iexplore.exe");
how to convert it to System.Drawing.Image?
The Bitmap
is derived from Image
so you can use Icon's .ToBitmap()
method.
Icon IEIcon = Icon.ExtractAssociatedIcon(@"C:\Program Files\Internet Explorer\iexplore.exe");
Image im = IEIcon.ToBitmap();