Re: [Flashcoders] bitMapData - function optimization

2008-02-29 Thread Hans Wichman
ebruary 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 S

RE: [Flashcoders] bitMapData - function optimization

2008-02-29 Thread Karim Beyrouti
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

Re: [Flashcoders] bitMapData - function optimization

2008-02-28 Thread Hans Wichman
http://objectpainters.com/blog/2007/11/30/inverting-the-alpha-of-a-bitmap-image/ 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

Re: [Flashcoders] bitMapData - function optimization

2008-02-28 Thread Steven Sacks
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 ? 0x

RE: [Flashcoders] bitMapData - function optimization

2008-02-28 Thread Karim Beyrouti
/threshold as it looks like a good solution. Regards Karim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Elia Morling Sent: 28 February 2008 16:08 To: Flash Coders List Subject: Re: [Flashcoders] bitMapData - function optimization See this page and the

Re: [Flashcoders] bitMapData - function optimization

2008-02-28 Thread Elia Morling
;[EMAIL PROTECTED]> To: "Flash Coders List" Sent: Thursday, February 28, 2008 3:47 PM Subject: Re: [Flashcoders] bitMapData - function optimization You could use the paletMap function or the threshold function of the bitmapData object. Check the documentation for details. G

Re: [Flashcoders] bitMapData - function optimization

2008-02-28 Thread EECOLOR
You could use the paletMap function or the threshold function of the bitmapData object. Check the documentation for details. Greetz Erik On 2/28/08, Karim Beyrouti <[EMAIL PROTECTED]> wrote: > > Hello Hello, > > Just wondering if anyone has any tips or ideas on optimizing this > function, > as