Cropping bitmap data

I am creating a bitmap data object that I’m using to save an image to the user drive. I can take an image of the canvas and save it fine but how do I go about cropping the image. Here is how I’m getting the image:

this.bmd =, 496);

Cropping how? Removing transparent pixels?

@samme No. I want the top left of the image to start at (150,150) instead of (0,0)


this.bmd.move(-150, -150, false);

@samme Thank you. That worked perfect.

1 Like