# Sample pixels from odd shape section of bitmap

**URL:** <https://forum.kirupa.com/t/sample-pixels-from-odd-shape-section-of-bitmap/212523>\
**Category:** flash\
**Created:** [January 11, 2007, 7:16pm UTC](https://forum.kirupa.com/t/sample-pixels-from-odd-shape-section-of-bitmap/212523 "2007-01-11T19:16:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joebert](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joebert/32/563_2.png) [@joebert](https://forum.kirupa.com/u/joebert)\
**Post date:** [January 11, 2007, 7:16pm UTC](https://forum.kirupa.com/t/sample-pixels-from-odd-shape-section-of-bitmap/212523/1 "2007-01-11T19:16:15Z")

</div>

How could I go about placing a bitmap on the stage, then sampling the color of random pixels that come from odd shaped sections of that bitmap ?

For instance, if this flower smiley was my bitmap :flower: how could I randomly get colors from only the flower & leaf sections ?
