Java tutorial
//package com.java2s; import java.awt.image.BufferedImage; public class Main { public static BufferedImage getSubImage(BufferedImage image, int x, int y, int w, int h) { return image.getSubimage(x, y, w, h); } }