Load an .ico file as a Bitmap in asp.net
<p>I want to show the favicon's from other domains in a tool on my site so I can show each domain's "logo". There's a great web app to extract the favicon for you because identifying the URL for the favicon can be tricky: <a href="http://getfavicon.appspot.com/" rel="nofollow">http://getfavicon.appspot.com/</a> </p>

<p>For example (I can't embed it here because it's an .ico file):
<a href="http://getfavicon.appspot.com/http://stackoverflow.com" rel="nofollow">http://getfavicon.appspot.com/http://stackoverflow.com</a></p>

<p>The problem is, the .ico files from various domains are in various sizes and I'd like to cache them locally in a specific size using .png format.</p>

<p>After researching, I found this can be accomplished using the <code>System.Windows.Media.Imaging.IconBitmapDecoder</code> class, but it relies on <code>WindowsBase</code>, <code>System.Xaml</code> and <code>PresentationCode</code> - all things I don't want to use from an asp.net application.</p>

<p>Is there another way to convert .ico files to .png using c# from an aspx page?</p>
