Here you can find the source of cutImage(BufferedImage image, int posX, int posY, int width, int height)
public static BufferedImage cutImage(BufferedImage image, int posX, int posY, int width, int height)
//package com.java2s; //License from project: Open Source License import java.awt.image.BufferedImage; public class Main { public static BufferedImage cutImage(BufferedImage image, int posX, int posY, int width, int height) { return image.getSubimage(posX, posY, width, height); }/*from w w w .j a v a2s. c om*/ }