My image is 1024 * 768. It's so slow. But the www.picnik.com does it very well. It change the image data so fast. Please try the Exposure function it the web. I just want to kown how to do this. Thanks
--- In [email protected], DreamCode <[EMAIL PROTECTED]> wrote: > > How big is the image you're processing in pixels? > > You have to consider that processing a 400x400 pixel image is a loop > of 160k iterations.... Now multiply that by the number of cpu cycles > pr. pixel and you will start to see scary numbers..... > > --allan > > > On 12/3/07, Alex Harui <[EMAIL PROTECTED]> wrote: > > Image processing is always CPU intensive. Flash is not optimized for it > > either. > > > > > > > > ________________________________ > > > > From: [email protected] [mailto:[EMAIL PROTECTED] On > > Behalf Of Larry Zhang > > Sent: Monday, December 03, 2007 2:03 AM > > To: [email protected] > > Subject: [flexcoders] How to improve BitmapData processing speed? > > > > > > > > Hello all, > > > > I am processing a bitmap data in Flex 3 beta 2. I want to do > > something to the pixels so I need to get them all and add my action to > > them. But I found it is very slow if I get pixels one by one by using > > two for loop and getPixel() method. Of course the setPixel() method is > > also slow. Then I try the getPixels() to gain a byteArray. It's fast but > > I still need to loop the byte array and readUnsignedInt() to get every > > color pixel and set them back. This also takes me much time. > > > > > > > > Is there any way to make it faster or I just use the wrong > > method to do such things? > > > > > > > > Thanks. > > > > > > > > ============================== > > > > Make Every Day Count > > > > > > > > Larry Zhang > > > > > > > > > > > > >

