Here you can find the source of doCrop(BufferedImage bufferedImage, int cropX, int cropY, int width, int height)
private static BufferedImage doCrop(BufferedImage bufferedImage, int cropX, int cropY, int width, int height)
//package com.java2s; //License from project: Apache License import java.awt.image.BufferedImage; public class Main { private static BufferedImage doCrop(BufferedImage bufferedImage, int cropX, int cropY, int width, int height) { return bufferedImage.getSubimage(cropX, cropY, width, height); }/*from w ww .j av a 2s. c o m*/ }