摘要:
Bitmap myBitmap = new Bitmap(Image.FromFile(filePath ), 32, 32); IntPtr Hicon = myBitmap.GetHicon(); Icon newIcon = Icon.FromHandle(Hicon); FileStream outStream = new FileStream(@"d:/a.ico", FileMode.OpenOrCreate); newIcon.Save(outStream); outStream.Flush(); outStream.Close();http://www.cn 阅读全文