Bitmap Dtata flood fills problems
Hi guys,
I am doing a small application which will allow the user to draw with different tools, something like paint. But now, I want to do a paint bucket and I got some problems.
I am using Bitmap Data to do it, so I draw the movieClip on the bitmap data, but when I want to apply the flood fills, it didn't fills the shape perfectly, because near the border, the pixels are not the same color as the one I click on.
Is there a way to fix this, or to change the tolerance of the floodfills? Because if I click on a #FFFF00 pixel, all pixels with this code will be filled, but pixels on the edge of the shape are lighter, so the pixels code is not the same.
Thanks for your help :-)