# Question to getColorBoundsRect

**URL:** <https://forum.kirupa.com/t/question-to-getcolorboundsrect/286453>\
**Category:** flash\
**Created:** [April 15, 2009, 6:28pm UTC](https://forum.kirupa.com/t/question-to-getcolorboundsrect/286453 "2009-04-15T18:28:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TZP](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@TZP](https://forum.kirupa.com/u/TZP)\
**Post date:** [April 15, 2009, 6:28pm UTC](https://forum.kirupa.com/t/question-to-getcolorboundsrect/286453/1 "2009-04-15T18:28:11Z")

</div>

Good day to you.

I´m working with BitmapData.getColorBoundsRect and it works so far fine for me. But what if I want to find more rectangles with the same color? For example: I got a BitmapData with 3 red rectangles. If I use getColorBoundsRect I get the whole area including the 3 rectangles. Is there a way to seperate each rectangle?

Thx!  
TZP
