ah yeah lol i just found the old thread:
http://readlist.com/lists/chattyfig.figleaf.com/flashcoders/5/27731.html


On Fri, Feb 29, 2008 at 12:15 PM, Karim Beyrouti <[EMAIL PROTECTED]> wrote:

> Yeh - saw that a while ago, Hans got this in answer to a question I posted
> here a while ago. However, I just managed to get it working, and yeh -
> it's
> really fast.
>
> Thanks for the reminder...
>
>
> - karim
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Hans
> Wichman
> Sent: 28 February 2008 19:16
> To: Flash Coders List
> Subject: Re: [Flashcoders] bitMapData - function optimization
>
>
> http://objectpainters.com/blog/2007/11/30/inverting-the-alpha-of-a-bitmap-im
> age/
> of
> any help?
>
>
>
> On Thu, Feb 28, 2008 at 6:56 PM, Steven Sacks <[EMAIL PROTECTED]>
> wrote:
>
> > maybe...
> >
> > private function createInvertedMask()
> > {
> >    var r:int = mask_bitmap.width;
> >    var c:int = mask_bitmap.height;
> >    var v:int;
> >
> >    while (--r -(-1))
> >    {
> >        while (--c -(-1))
> >        {
> >            v = mask_bitmap.getPixel32(r, c);
> >            mask_bitmap.setPixel32(r, c, v ? 0x00000000 : 0xFF000000);
> >         }
> >    }
> > }
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date:
> 29/02/2008
> 08:18
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to