I think that’s a potential bug in the BitmapData threshold function I tried to remove a certain color using the following code from the image:
bitmapData.threshold(bitmapData, new Rectangle(0, 0, bitmapData.width, bitmapData.height), new Point(), "==", backColor, 0, 0x00FFFFFF);
but it didn’t work going in the code of BitmapData I found that the color and threshold are flipped using these lines:
threshold = __flipPixel (threshold); color = __flipPixel (color);
removing these lines the code worked properly which was a bit weird but I think reversing threshold and color and anding it with the mask will remove some components.
Sorry for posting here but I really don’t know where to report the bugs