static BufferedImage clipBufferedImage(BufferedImage src, Rectangle clip) { ret src.getSubimage(clip.x, clip.y, clip.width, clip.height); } static BufferedImage clipBufferedImage(BufferedImage src, Rect clip) { ret clipBufferedImage(src, clip.getRectangle()); } static BufferedImage clipBufferedImage(BufferedImage src, int x, int y, int w, int h) { ret src.getSubimage(x, y, w, h); }