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

