views:

39

answers:

1

Checked the documentation but I couldn't find anything. I want list the cordinates of the filled pixels of any shape into an array.

The function would look like this:

function listShapePixels(shape:Shape):Array

+2  A: 

Briefly :

  • Convert the shape into a bitmapData with the draw() method
  • Scan the bitmap data with getPixel32 to gather the filled pixels and store their coordinates into the array.
Theo.T
Thanks! It's working now!
Richard J. Terrell