I am reading the color of pixels and extract the red/green/blue channels like below:
var pxColor:uint = _bmd.getPixel(x, y);
var red:uint = pxColor >> 16 & 0xFF;
var green:uint = pxColor >> 8 & 0xFF;
var blue:uint = pxColor & 0xFF;
Extracting colors like above will take time. A few milliseconds matter! and because I am doing above in a loop for many pixels, my speed tests are showing that if I can find a faster way to speed up the above operation, the whole process will complete sooner.
I'm very bad with understanding colors and thought to ask here to see if there's any equivalent way to get the same result but faster?