# getColorBoundsRect Question

**URL:** <https://forum.kirupa.com/t/getcolorboundsrect-question/239239>\
**Category:** flash\
**Created:** [September 19, 2007, 8:14pm UTC](https://forum.kirupa.com/t/getcolorboundsrect-question/239239 "2007-09-19T20:14:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![icekube12jr](https://avatars.discourse-cdn.com/v4/letter/i/c89c15/32.png) [@icekube12jr](https://forum.kirupa.com/u/icekube12jr)\
**Post date:** [September 19, 2007, 8:14pm UTC](https://forum.kirupa.com/t/getcolorboundsrect-question/239239/1 "2007-09-19T20:14:46Z")

</div>

Hi,

Attached to this post are three gifs that explain my question. Their descriptions are as follows:

line1.gif - the way my BitmapData object looks in normal state

line2.gif - the rectangle created when I apply getColorBoundsRect(0xFFFFFFFF,0xFFFF0000). This looks for the red channel in the BitmapData object.

line3.gif - the way I would like to have getColorBoundsRect work. Instead of grabbing all the red as though it were one object, I want it to split up each red section as though they were all their own. How can I do this?

icekube12jr
