Loading bitmap and change aspect ration

Hi!

Is it possible to first create a square


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!