如何将 bytearray 转换为图像或将图像转换为 bytearray ? [英] How to convert bytearray to image or image to bytearray ?

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

问题描述

如何将 bytearray 值分配给面板背景图像.如果有人有想法或经验,请帮助我克服这个问题.简要说明:

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

我有面板控件,想加载从网络服务获取的图像作为背景图像.所以我使用了 setstyle() 但它不接受该图像.那么如何将该图像添加到我的面板背景图像中.请在这里告诉我您的想法.

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 转换为图像或将图像转换为 bytearray ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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