Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Saving icon results in very poor quality

$
0
0
IntPtr large;
IntPtr small;
ExtractIconEx(currentpath, index, out large, out small, 1);
System.Drawing.Icon icon = System.Drawing.Icon.FromHandle(large);

FileStream stream = File.Create(savepath);
icon.Save(stream);
stream.Close();

I'm trying to get out some Icon from dll files and try to save them in ico Format. But the Quality of the result is very poooor.

The Colors are not the same.

So, what did i wrong???


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>