Bitmapdata - convert colour to transparency

#1

I’m trying to do a number of bitmapdata colour transformations. Doing this manually with getPixel/setPixel works, but is sloooow.

So, I wondered if there was a way I could replicate something like Flash’s copyChannel?