# Copying BitmapData

**URL:** <https://forum.kirupa.com/t/copying-bitmapdata/272687>\
**Category:** flash\
**Created:** [October 7, 2008, 5:28pm UTC](https://forum.kirupa.com/t/copying-bitmapdata/272687 "2008-10-07T17:28:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fydus](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@Fydus](https://forum.kirupa.com/u/Fydus)\
**Post date:** [October 7, 2008, 5:28pm UTC](https://forum.kirupa.com/t/copying-bitmapdata/272687/1 "2008-10-07T17:28:37Z")

</div>

If I had b1:Bitmap and b2:Bitmap  
Each with size 10x10 and stores it’s own bitmap  
b1.bitmapData.copyPixels(b2, new Rectangle(0,0,10,10), new Point(0,0), null, null, true);  
Would b1 still store the information from it’s original bitmap + b2’s bitmap?  
Or would b2’s bitmap info overwrite b1’s?

Say b1 had a bitmap of size 20x10 and b2 was copied over only 10x10 of b1.  
Would it only store b2 and part of the old b1? or all of b1’s original image+b2’s?

Thanks,  
Fydus
