To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Convert ByteArray to Bitmap
Yeah, things are working, but really there should be a loadBytes() API
on mx:Image/SWFLoader to save you a step.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim
Oops, sorry, this one makes slightly more sense (first thing in the
morning, not even finished my first cuppa...)
private var _ldr:Loader
private function myTest():void{
//get ByteArray from Image Component content
var testBM:Bitmap = testImg.content as Bitmap;
var myByte:ByteArray = new
After reading some previous posts, it appears that the best way to convert a
byte array into a Bitmap is though the loader class...
In my debugging it fails silently, but I get the follow message when I try to
look into the vars (Error: Error #2099: The loading object is not
sufficiently
@yahoogroups.com
Subject: RE: [flexcoders] Convert ByteArray to Bitmap
Oops, sorry, this one makes slightly more sense (first thing in the
morning, not even finished my first cuppa...)
private var _ldr:Loader
private function myTest():void{
//get ByteArray from Image Component content
var testBM:Bitmap
] On Behalf Of Alex Harui
Sent: 02 November 2007 16:05
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Convert ByteArray to Bitmap
Yeah, things are “working”, but really there should be a loadBytes
() API on mx:Image/SWFLoader to save you a step.
From: flexcoders@yahoogroups.com
[mailto
@yahoogroups.com
Subject: Re: [flexcoders] Convert ByteArray to Bitmap
Thanks for all your help on this. To answer your question Alex, no we
are not using JPEGEncoder in our app, that was just to do a test that
could easily get us the ByteArray data that we know is a valid image.
I will try
After reading some previous posts, it appears that the best way to
convert a byte array into a Bitmap is though the loader class...
loader.loadBytes(myByteArray);
Thus, I created a simple test to see if I could get it to work.
private function myTest():void{
//get ByteArray
01, 2007 9:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Convert ByteArray to Bitmap
After reading some previous posts, it appears that the best way to
convert a byte array into a Bitmap is though the loader class...
loader.loadBytes(myByteArray);
Thus, I created a simple
All,
I'm retrieving an image via remoting as a ByteArray. How can I convert
this to a Bitmap without knowing the width/height of the image? I've
seen SetPixels - but that requires me knowing the dimensions of an image
- which I don't.
Any ideas?
if you dont know what is it ByteArray how you want todisplayit :)
you have to know at least 1 parameter, width or height...
thats my opinion
Franto
On 1/26/07, Steve Cox [EMAIL PROTECTED] wrote:
All,
I'm retrieving an image via remoting as a ByteArray. How can I convert
this to a Bitmap
10 matches
Mail list logo