Display Ico File in Silverlight 3 Application

I need to display favicon.ico files received from arbitrary websites as BitmapImage in a Silverlight 3 application, but Silverlight 3 BitmapImage only supports PNG and JPG. Any suggestions?

+3
source share
1 answer

Since this feature is not built into Silverlight, you will need to do the decoding yourself.

Consider using the Joe Stegman icon decoder implementation on http://blogs.msdn.com/jstegman/archive/2009/09/13/silverlight-ico-icon-decoder-parser.aspx

+3
source

Source: https://habr.com/ru/post/1741656/


All Articles