# Finding the brightest pixels

**URL:** <https://forum.kirupa.com/t/finding-the-brightest-pixels/258210>\
**Category:** flash\
**Created:** [April 22, 2008, 3:58am UTC](https://forum.kirupa.com/t/finding-the-brightest-pixels/258210 "2008-04-22T03:58:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Btog21](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@Btog21](https://forum.kirupa.com/u/Btog21)\
**Post date:** [April 22, 2008, 3:58am UTC](https://forum.kirupa.com/t/finding-the-brightest-pixels/258210/1 "2008-04-22T03:58:30Z")

</div>

Hi every one.  
I need help, I am trying to find the brightest pixels in a video with a webcam, the idea is to aim with a laser pointer the wall and find the white pixels, it works, but the problem is than I need a completly dark room because the rectangle find every pixel with color…  
I am using:

zone.getColorBoundsRect(0x000000CC, 0x00FFFFFF, false);

I already tried to scan pixel by pixel, with getPixel(), but the process makes the computer very slow…  
if you have any idea…  
…  
thank you very much.
