我写了一个保存可执行文件图标的程序。当我通过 ExtractAssociatedIcon 方法获取可执行文件的图标并保存时,输出图标的质量为低质量。我能做些什么?
var ico = Icon.ExtractAssociatedIcon(@"c:/test.exe");
FileStream stream = new System.IO.FileStream(string.Format("{0}{1}", Path.GetTempPath(), "icon" + counter + ".ico"), System.IO.FileMode.Create);
ico.Save(stream);
stream.Flush();
stream.Close();