问题
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