.NET - Save icon with high(er) quality

佐手、 提交于 2019-12-07 04:56:32

问题


I am extracting the icon of an external application using ExtractIconEx, but when I attempt to save the icon using the Save() method of the Icon object, the icon is saved with a low quality, as in, the icon seems to have a lower colour depth than desired.

The icon stored inside the application is certainly of a higher quality, as when I save the icon using ico.ToBitmap().Save("C:\\out.bmp"), the bitmap that is saved is of full quality/colour depth.

So, how can I save an icon that is of the correct quality?

来源:https://stackoverflow.com/questions/10844344/net-save-icon-with-higher-quality

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!