RE: [flexcoders] Convert ByteArray to Bitmap

2007-11-02 Thread Jim Hayes
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

RE: [flexcoders] Convert ByteArray to Bitmap

2007-11-02 Thread Jim Hayes
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

RE: [flexcoders] Convert ByteArray to Bitmap

2007-11-02 Thread Jim Hayes
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

RE: [flexcoders] Convert ByteArray to Bitmap

2007-11-02 Thread Alex Harui
@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

Re: [flexcoders] Convert ByteArray to Bitmap

2007-11-02 Thread Kevin
] 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

RE: [flexcoders] Convert ByteArray to Bitmap

2007-11-02 Thread Alex Harui
@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

[flexcoders] Convert ByteArray to Bitmap

2007-11-01 Thread Kevin
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

RE: [flexcoders] Convert ByteArray to Bitmap

2007-11-01 Thread Alex Harui
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

[flexcoders] Convert ByteArray to Bitmap

2007-01-29 Thread Steve Cox
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?

Re: [flexcoders] Convert ByteArray to Bitmap

2007-01-29 Thread franto
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