Without pretending to have the inside track on how they do it - I'm fairly
sure they accomplish it by some combination of multiplication/division but
not on individual pixels, without having spent more than 45 secs looking
at it. There's also they option that the accomplish the "realtime" effect by
adding a layer filed with a certain color on top and adjust the alpha value.
That might be able to mimick the final result without noticable differences
and then generate the actual rendering i the background until it's done and
the swap of images goes unnnoticed :)



On Dec 3, 2007 7:36 PM, larryzzl <[EMAIL PROTECTED]> wrote:

>   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] <flexcoders%40yahoogroups.com>,
> 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] <flexcoders%40yahoogroups.com>
> [mailto:[email protected] <flexcoders%40yahoogroups.com>] On
> > > Behalf Of Larry Zhang
> > > Sent: Monday, December 03, 2007 2:03 AM
> > > To: [email protected] <flexcoders%40yahoogroups.com>
> > > 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
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
>  
>

Reply via email to