Icon icon = ICONHelper.GetFileIcon(filePath); MemoryStream mStream = new MemoryStream();//创建内存流 icon.Save(mStream); Image image = Image.FromStream(mStream); mStream.Close();
Icon icon = ICONHelper.GetFileIcon(filePath); MemoryStream mStream = new MemoryStream();//创建内存流 icon.Save(mStream); Image image = Image.FromStream(mStream); mStream.Close();
转载于:https://www.cnblogs.com/qq1223558/p/3210257.html