Silverlight 4 BitmapImage - bmp file support

前端 未结 1 1683
醉酒成梦
醉酒成梦 2021-01-25 21:32

MSDN mentions support for PNG and JPG, but many people are trying setSource(file.bmp) and complaining about \"Catastrophic failures\".

Can someone clarify this, is bmp

1条回答
  •  抹茶落季
    2021-01-25 22:14

    BMP is not supported in Silverlight. BMP is a very old and not a very efficient format (compared with PNG & JPG) so they have not bothered to support it.

    Silverlight only supports JPG & PNG format images.

    The best way to display them is to convert them on the web server so they can be served up as PNGs. The webserver will have access to enough .Net libraries that BMP=>PNG conversion will be easy. I would not bother to create a BMP loader client-side.

    0 讨论(0)
提交回复
热议问题