public BufferedImage getSubimage (int x, int y, int w, int h)

Returns a subimage defined by a specified rectangular region. The returned BufferedImage shares the same data array as the original image.

Parameters:
x    the X coordinate of the upper-left corner of the specified rectangular region
y    the Y coordinate of the upper-left corner of the specified rectangular region
w    the width of the specified rectangular region
h    the height of the specified rectangular region

Returns:  a BufferedImage that is the subimage of this BufferedImage.

Exceptions:
RasterFormatException    if the specified area is not contained within this BufferedImage.