ogramp Posted April 15, 2016 Share Posted April 15, 2016 Is it possible to count the number of visible pixels that have been drawn on a graphics object? I know its possible on BitmapData object through ImageData.data array, but I can't find that sort of thing in the graphics object and I need to use the graphics for masking. I want to calculate the percentage of how much of a sprite has been painted over by the graphics. Link to comment Share on other sites More sharing options...
VitaZheltyakov Posted April 15, 2016 Share Posted April 15, 2016 Use: processPixelRGB getPixelRGB Link to comment Share on other sites More sharing options...
ogramp Posted April 15, 2016 Author Share Posted April 15, 2016 Those are bitmapdata objects public methods. How do I use'em on graphics object? Am I missing something? Link to comment Share on other sites More sharing options...
Recommended Posts