# Quick BitmapData question

**URL:** https://forum.kirupa.com/t/quick-bitmapdata-question/269638
**Category:** flash
**Created:** [August 29, 2008, 11:04pm UTC](https://forum.kirupa.com/t/quick-bitmapdata-question/269638 "2008-08-29T23:04:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)
#### Post date: [August 29, 2008, 11:04pm UTC](https://forum.kirupa.com/t/quick-bitmapdata-question/269638/1 "2008-08-29T23:04:36Z")

</div>

I have a .png imported to library with linkage name ‘Header’ and then loaded whole .swf to another’s applicationDomain.  
Is there a possiblibility to create new bitmap using original width and height?

```auto
var b:Bitmap = new Bitmap(new (ApplicationDomain.currentDomain.getDefinition("Header") as Class)(w,h));
//I "don't know" what w and h values are in original BitmapData, since It is from external library

```

I could check in that external library width and height which are 1013x47 and hardcode it, but when I decide to change image with another dimensions I then have to change that hardcoded value. Can this be dynamic?
