Returns a subimage defined by a specified rectangular region.
The returned BufferedImage shares the same
data array as the original image.
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 |
BufferedImage that is the subimage of this
BufferedImage.
RasterFormatException | if the specified
area is not contained within this BufferedImage. |
Diagram: Image