# New Bitmap(BitmapData)

**URL:** <https://forum.kirupa.com/t/new-bitmap-bitmapdata/326487>\
**Category:** flash\
**Created:** [December 18, 2011, 4:47am UTC](https://forum.kirupa.com/t/new-bitmap-bitmapdata/326487 "2011-12-18T04:47:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![temp6532](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@temp6532](https://forum.kirupa.com/u/temp6532)\
**Post date:** [December 18, 2011, 4:47am UTC](https://forum.kirupa.com/t/new-bitmap-bitmapdata/326487/1 "2011-12-18T04:47:03Z")

</div>

I was wondering what, exactly, happens if I call New Bitmap() on a Bitmap object that already exists? To my understanding the existing bitmap is changed but I’m wondering if it somehow ‘overlaps’ the last Bitmap I had?

I have an icon Bitmap, which gets its BitmapData from Item.icon.

```auto
icon = new Bitmap(item.icon);

```

Should the icon need to change, I’ll use:

```auto
icon = new Bitmap(item.icon);

```

When it does.

What I really am wondering is, will this way use up memory? Or will I have to free up memory used by the last Bitmap?
