# Making Polygons Over Colored Image Parts: Possible?

**URL:** <https://forum.kirupa.com/t/making-polygons-over-colored-image-parts-possible/311507>\
**Category:** flash\
**Created:** [July 8, 2010, 5:07pm UTC](https://forum.kirupa.com/t/making-polygons-over-colored-image-parts-possible/311507 "2010-07-08T17:07:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thegnome54](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@thegnome54](https://forum.kirupa.com/u/thegnome54)\
**Post date:** [July 8, 2010, 5:07pm UTC](https://forum.kirupa.com/t/making-polygons-over-colored-image-parts-possible/311507/1 "2010-07-08T17:07:34Z")

</div>

Hey guys, I’m new here but I’ve been using the site as a resource for a while. I’ve got a tough problem. I have .ppm files which are the result of using a segmentation algorithm on images of things. These basically look like a jigsaw puzzle of randomly colored funny-shaped segments. I’d like for each segment to be selectable. I want them to change color on mouseover, so I can’t just use bitmapData.getColorBounds (that’s the best thing I could find searching for possible solutions). As far as I know, the best way to make a specific shape selectable is to draw a polygon using graphics.lineTo, etc. Assuming that that is true, is there any way to draw a polygon that roughly follows a jaggedly-shaped area of a certain color? Or is this just not something flash can handle?

Thanks so much!
