# BitmapData.draw() - Simple question

**URL:** https://forum.kirupa.com/t/bitmapdata-draw-simple-question/243804
**Category:** Uncategorized
**Created:** [November 11, 2007, 4:57am UTC](https://forum.kirupa.com/t/bitmapdata-draw-simple-question/243804 "2007-11-11T04:57:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Groady](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/groady/32/3750_2.png) [@Groady](https://forum.kirupa.com/u/Groady)
#### Post date: [November 11, 2007, 4:57am UTC](https://forum.kirupa.com/t/bitmapdata-draw-simple-question/243804/1 "2007-11-11T04:57:22Z")

</div>

Can someone explain to me how to get a “drawn” bitmap to be rendered at 0,0 when using a clip rectangle.

To simplify, say I have a 300x300 bitmap inside a movie clip with it’s x,y registered to top left. I want to crop a 100x100 square area from the bottom right corner. My issue is the copied bitmap is drawn with it’s x,y relative to the source image’s x,y coordinates. So when it’s added to the stage it’s 200 pixels in on both the x & y axis.

Any help would be appreciated.

```auto

var myBitmapData:BitmapData = new BitmapData(300,300,false);
var clipArea:Rectangle = new Rectangle(200,200,100,100);
var myBitmap:Bitmap = new Bitmap(bmd);

 myBitmapData.draw(targetMC,null,null,null,clipArea,true);

addChild(myBitmapData);

```
