Here you can find the source of subImage(BufferedImage image, int x, int y, int width, int height)
Parameter | Description |
---|---|
image | a parameter |
x | a parameter |
y | a parameter |
width | a parameter |
height | a parameter |
public static BufferedImage subImage(BufferedImage image, int x, int y, int width, int height)
//package com.java2s; /*/*from w w w. j a v a 2 s .c o m*/ * leola-live * see license.txt */ import java.awt.image.BufferedImage; public class Main { /** * Gets a subImage. * * @param image * @param x * @param y * @param width * @param height * @return */ public static BufferedImage subImage(BufferedImage image, int x, int y, int width, int height) { return image.getSubimage(x, y, width, height); } }