I THINK you are going to want to use ColorMatrixFilter().

Good article at:
http://macromedia.com/devnet/flash/articles/matrix_transformations_04.ht
ml



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Newsdee
Sent: Thursday, February 02, 2006 5:03 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] BitmapData.paletteMap() and color replacament?


Hi List,

I'm trying to come up with a fast method to replace specific colors in a
BitmapData object. In other words, specify two RGB values and have one
replace the other without using getPixels (which would require scanning
the
whole Bitmap).

I've seen on the docs that paletteMap can do something similar to this,
but
it seems constrained to a single channel. It seems I can replace "Red
0xFF"
by "Red 0x00", but not tell it to replace "0xFF00000" only (and ignore
the
other pixels).

Can anyone point me to examples of using this function in any other way?
Do
you know of another function that would do the effect I'm after?

Thanks,
Newsdee.
_______________________________________________
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