# Loading bitmap and change aspect ration

**URL:** <https://forum.kirupa.com/t/loading-bitmap-and-change-aspect-ration/331065>\
**Category:** flash\
**Created:** [May 7, 2013, 2:44pm UTC](https://forum.kirupa.com/t/loading-bitmap-and-change-aspect-ration/331065 "2013-05-07T14:44:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cledus](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cledus](https://forum.kirupa.com/u/cledus)\
**Post date:** [May 7, 2013, 2:44pm UTC](https://forum.kirupa.com/t/loading-bitmap-and-change-aspect-ration/331065/1 "2013-05-07T14:44:27Z")

</div>

Hi!

Is it possible to first create a square

```auto

var myBitmapDataObject:BitmapData = new BitmapData(1024, 1024, false, 0xFFFFFF);

```

then load a image and draw it on top of the same BitmapData to create a square BitmapData and by this way change the aspect ratio without distorting the image.

Thanks!
