I’m trying to draw a bitmap in flex,the original bitmap is

but, actually it show up in the app looks like

here is the code:
this.component.graphics.beginBitmapFill(leakBitmapData);
this.component.graphics.drawRect(leakPoint.x-halfWidth,leakPoint.y-halfHeight,leakBitmapData.width,leakBitmapData.height);
this.component.graphics.endFill();
only when I draw the rect at (0,0),it looks right.
Why?
If you want to draw something outside the origin, you will need to do a matrix translation on the BitmapData. Something like this: