开发者

BitmapImage to Bitmap

开发者 https://www.devze.com 2023-01-03 18:30 出处:网络
Hy How can i convert a BitmapImage to a Bitmap in Silverli开发者_开发技巧ght 4? Thanks!BMP is not supported in Silverlight. BMP is a very old and not a very efficient format (compared with PNG &

Hy How can i convert a BitmapImage to a Bitmap in Silverli开发者_开发技巧ght 4?

Thanks!


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

精彩评论

暂无评论...
验证码 换一张
取 消