# Get pixels of Bitmap from polygon

**URL:** https://forum.kirupa.com/t/get-pixels-of-bitmap-from-polygon/320334
**Category:** Uncategorized
**Created:** [March 21, 2011, 3:46am UTC](https://forum.kirupa.com/t/get-pixels-of-bitmap-from-polygon/320334 "2011-03-21T03:46:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![anakadote](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/anakadote/32/2119_2.png) [@anakadote](https://forum.kirupa.com/u/anakadote)
#### Post date: [March 21, 2011, 3:46am UTC](https://forum.kirupa.com/t/get-pixels-of-bitmap-from-polygon/320334/1 "2011-03-21T03:46:57Z")

</div>

I know that I can collect the pixels of a rectangular area within a Bitmap using getPixels(), but is there a way to collect the pixels of a polygonal area with more than 4 points? Or at least determine whether a particular pixel lies within a polygonal area of a Bitmap?
