Hi,
Cropping an image using Marvin:
// 1. Load original image
MarvinImage image = MarvinImageIO.loadImage("./image.jpg");
// 2. Crop image using the method image.crop(x,y,width,height)
MarvinImage imageCrop = image.crop(50,50,100,100);
// 3. save the new image
MarvinImageIO.saveImage(imageCrop, "./imageCroped.jpg");
You just need to collect the x,y,width,height using the mouse
interface.