generating preview of BMP Image

泄露秘密 提交于 2019-12-24 22:15:41

问题


I am working on a Media up-loader which uploads images to Server. Before start upload file i want to show small thumbnail of Image.

I used Loader class to load image selected by user & used Canvas to draw image on it.

This works fine with images like jpg & png.

But for bmp file loader class doesn't work.

Is there anyway to load bmp image in Flex & Convert it to BitmapData ??


回答1:


I didn't test the example, but you could try this: Parsing and displaying BMP files via ActionScript And read the comments under the article, there are some links as well.



来源:https://stackoverflow.com/questions/3572535/generating-preview-of-bmp-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!