生成BMP图像的预览 [英] generating preview of BMP Image

查看:255
本文介绍了生成BMP图像的预览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个Media up-loader将图片上传到伺服器。在开始上传文件之前我想要显示图像的小缩略图。

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.

我使用Loader类加载用户选择的图像。使用Canvas来绘制图像。

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

这对于像jpg& png。

This works fine with images like jpg & png.

但是对于bmp文件加载器类不起作用。

But for bmp file loader class doesn't work.

在Flex&转换为BitmapData

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

推荐答案

我没有测试的例子,但你可以尝试这样:
< a href =http://www.mikechambers.com/blog/2009/09/17/parsing-and-displaying-bmp-files-via-actionscript/ =nofollow noreferrer>解析和显示BMP文件ActionScript
阅读文章下的注释,还有一些链接。

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.

这篇关于生成BMP图像的预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆