生成 BMP 图像的预览

发布于 2024-09-15 17:23:32 字数 213 浏览 3 评论 0原文

我正在开发一个媒体上传器,它将图像上传到服务器。在开始上传文件之前,我想显示图像的小缩略图。

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

这对于 jpg 和 jpg 等图像效果很好。 .png

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

有没有办法在 Flex & 中加载 bmp 图像?将其转换为位图数据??

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 ??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幸福还没到 2024-09-22 17:23:32

我没有测试这个例子,但你可以试试这个:
解析和显示 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文