Automatically crop image to set x + y values

Thats pretty much what @MaxZieb is pointing you to. You can laod an image into a canvase and crop it using the created canvase propeties.

Have a look at the link he posted..

Also just remembered I wrote a quick example of using canvas from a Device camera.