# Updating BitmapData objects

**URL:** https://forum.kirupa.com/t/updating-bitmapdata-objects/233213
**Category:** flash
**Created:** [July 21, 2007, 5:48am UTC](https://forum.kirupa.com/t/updating-bitmapdata-objects/233213 "2007-07-21T05:48:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Rezmason](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rezmason/32/30447_2.png) [@Rezmason](https://forum.kirupa.com/u/Rezmason)
#### Post date: [July 21, 2007, 5:48am UTC](https://forum.kirupa.com/t/updating-bitmapdata-objects/233213/1 "2007-07-21T05:48:07Z")

</div>

The language reference mentions that you can pass the **unlock()** method of the **BitmapData** class a **Rectangle** , which is called the “changeRect”. Apparently, this tells Flash that the pixels outside the boundaries of that Rectangle in the BitmapData object have not changed since before the BitmapData object was first locked with the **lock()** method.

This suggests that you can tell Flash to update only parts of a BitmapData object using the changeRect argument. I haven’t gotten this to work, and I was hoping to use it for a speed boost in a project.

Does anyone else know how this changeRect is supposed to work? I’ll post code if I have to.(-:
