Flex 中的位图图像 [英] Bitmap image in Flex

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

问题描述

我正在尝试以下

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >     
    <mx:Canvas id="myBox">
        <mx:Box id="myBox2">
            <mx:Image source="img/hippo.bmp"></mx:Image>
            <mx:Image source="img/close_button.gif"></mx:Image>
        </mx:Box>
    </mx:Canvas>    
</mx:Application>

我得到了 close_button.gif 的图像,而另一个 hippo.bmp 没有显示.Flex 中的位图文件有什么问题?

I got the image of close_button.gif while the other hippo.bmp is not displayed. What is the problem with bitmap file in Flex?

推荐答案

简答:

  1. 将包添加到您的项目
  2. 在屏幕上添加图像容器
  3. var image1:BmpReader=new BmpReader;
  4. imageObjectOnScreen.addChild(image1.BmpReaderEx(MyPicture.bmp"));

您一定要检查这个.

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

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