# Drawing bitmapdata with negative top left

**URL:** <https://forum.kirupa.com/t/drawing-bitmapdata-with-negative-top-left/286776>\
**Category:** flash\
**Created:** [April 20, 2009, 9:01pm UTC](https://forum.kirupa.com/t/drawing-bitmapdata-with-negative-top-left/286776 "2009-04-20T21:01:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nook](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@nook](https://forum.kirupa.com/u/nook)\
**Post date:** [April 20, 2009, 9:01pm UTC](https://forum.kirupa.com/t/drawing-bitmapdata-with-negative-top-left/286776/1 "2009-04-20T21:01:17Z")

</div>

Sorry for the possibly confusing title.

I wanted to use the well known method for turning your vector graphic into bitmaps.

Ie, something like:

```auto
var bmd:BitmapData = new BitmapData(src.width, src.height)
bmd.draw(src);
var bm:Bitmap = new Bitmap(bmd)

```

My problem is that my source has a centered registration point meaning the top left is at negative x and y values, and the bitmap only draws the content from point (0, 0).

Is it possible to draw the bitmap regardless of the registration point position, or do I have to draw if from point (0, 0) and then put it centered in a container?
