I have a Sprite which is in the shape of a Convex polygon(not rectangular).
If I take its snapshot using :
var bmd:BitmapData = new BitmapData(width,height);
bmd.draw(someSprite,someMatrix,null,null,null);
I get an image like this :
In this image, I have added the green boundary myself, just to show
the dimensions of the image.
So, when I took a snapshot of the convex polygon shaped sprite
using draw method of the BitmapData class, I got a red triangle
with a white ellipse inside and for rest of the area, I got while pixels.
I want to replace those outer white pixels with blue colored pixels.
How do I do it?