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
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
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
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
/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
;[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
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
7 matches
Mail list logo