# getColorBoundsRect() doesn't work in Player 9

**URL:** https://forum.kirupa.com/t/getcolorboundsrect-doesnt-work-in-player-9/286335
**Category:** flash
**Created:** [April 14, 2009, 2:39am UTC](https://forum.kirupa.com/t/getcolorboundsrect-doesnt-work-in-player-9/286335 "2009-04-14T02:39:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pardoner](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@pardoner](https://forum.kirupa.com/u/pardoner)
#### Post date: [April 14, 2009, 2:39am UTC](https://forum.kirupa.com/t/getcolorboundsrect-doesnt-work-in-player-9/286335/1 "2009-04-14T02:39:55Z")

</div>

Is there any reason why getColorBoundsRect() of the BitmapData Class would work in Flash player 10 but not in 9?

```auto

letterText.text ="H";
var textBitmapData:BitmapData = new BitmapData(letterText.width, letterText.height, true, 0x00000000);
textBitmapData.draw(letterText);
var bounds:Rectangle = textBitmapData.getColorBoundsRect(0xFF000000, 0x00000000, false);

trace(bounds); // (x=0, y=0, w=0, h=0) in Flash Player 9
trace(bounds); // (x=7, y=5, w=88, h=91) in Flash Player 10

```
