Sample pixels from odd shape section of bitmap

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 ?