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

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

问题描述

我正在尝试以下内容:

I was trying the following

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

推荐答案

简短的答案:


Short Answer:


  1. 将包添加到您的项目中
  2. 在屏幕上添加图像容器
  3. code> var image1:BmpReader = new BmpReader;

  4. imageObjectOnScreen.addChild(image1.BmpReaderEx(MyPicture.bmp ));

  1. Add the package to your project
  2. Add an image container on the screen
  3. var image1:BmpReader=new BmpReader;
  4. imageObjectOnScreen.addChild(image1.BmpReaderEx("MyPicture.bmp"));

您必须检查这个

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

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