如何字节组转换为图像或图像的ByteArray? [英] How to convert bytearray to image or image to bytearray ?

查看:164
本文介绍了如何字节组转换为图像或图像的ByteArray?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何分配的ByteArray值面板的背景图像。如果任何人有想法或的experiance plz帮助我克服这个问题。简介EXP:

How to assign bytearray value to panel background image. If anybody have idea or experiance plz help me to overcome the problem. BRIEF EXP:

我有面板控制,并希望加载图像从web服务获得一个和backgroundImage。所以我用的setStyle(),但其不接受该图像。所以如何添加图片到我的面板背景image.Plz电话:在这里我你的想法。

I have panel control and want to load image getting from webservice as a backgroundimage. So i used setstyle() but its not accepting that image. so how to add that image into my panel background image.Plz tel me your ideas here.

推荐答案

在Flex 3或更高,你只需要做的:

In Flex 3 or higher, you just need to do:

 yourImage.source = yourByteArray;

问候!

这篇关于如何字节组转换为图像或图像的ByteArray?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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