``Java,import java.awt.image.BufferedImage;,import java.io.File;,import javax.imageio.ImageIO;,,public class ImageCutter {,, public static BufferedImage cropImage(BufferedImage source, int x, int y, int width, int height) {, return source.getSubimage(x, y, width, height);, },, public static void main(String[] args) {, try {, BufferedImage sourceImage = ImageIO.read(new File("source.jpg"));, BufferedImage croppedImage = cropImage(sourceImage, 50, 50, 200, 200);, ImageIO.write(croppedImage, "jpg", new File("cropped.jpg"));, } catch (Exception e) {, e.printStackTrace();, }, },},
``