The parentX, parentY, width and height parameters form a Rectangle in this WritableRaster's coordinate space, indicating the area of pixels to be shared. An error will be thrown if this Rectangle is not contained with the bounds of the current WritableRaster.
The new WritableRaster may additionally be translated to a different coordinate system for the plane than that used by the current WritableRaster. The childMinX and childMinY parameters give the new (x, y) coordinate of the upper-left pixel of the returned WritableRaster; the coordinate (childMinX, childMinY) in the new WritableRaster will map to the same pixel as the coordinate (parentX, parentY) in the current WritableRaster.
The new WritableRaster may be defined to contain only a subset of the bands of the current WritableRaster, possibly reordered, by means of the bandList parameter. If bandList is null, it is taken to include all of the bands of the current WritableRaster in their current order.
To create a new WritableRaster that contains a subregion of the current WritableRaster, but shares its coordinate system and bands, this method should be called with childMinX equal to parentX, childMinY equal to parentY, and bandList equal to null.
@param parentX X coordinate of the upper left corner in thisWritableRaster's coordinates.
@param parentY Y coordinate of the upper left corner in thisWritableRaster's coordinates.
@param w Width of the region starting at (parentX, parentY).
@param h Height of the region starting at (parentX, parentY).
@param childMinX X coordinate of the upper left corner ofthe returned WritableRaster.
@param childMinY Y coordinate of the upper left corner ofthe returned WritableRaster.
@param bandList Array of band indices, or null to use all bands.
@return a WritableRaster
sharing all or part of theDataBuffer
of this WritableRaster
.
@exception RasterFormatException if the subregion is outside of theraster bounds.
@throws RasterFormatException if w
orh
is less than or equal to zero, or computing any of parentX + w
, parentY + h
, childMinX + w
, or childMinY + h
results in integer overflow
The parentX, parentY, width and height parameters form a Rectangle in this WritableRaster's coordinate space, indicating the area of pixels to be shared. An error will be thrown if this Rectangle is not contained with the bounds of the current WritableRaster.
The new WritableRaster may additionally be translated to a different coordinate system for the plane than that used by the current WritableRaster. The childMinX and childMinY parameters give the new (x, y) coordinate of the upper-left pixel of the returned WritableRaster; the coordinate (childMinX, childMinY) in the new WritableRaster will map to the same pixel as the coordinate (parentX, parentY) in the current WritableRaster.
The new WritableRaster may be defined to contain only a subset of the bands of the current WritableRaster, possibly reordered, by means of the bandList parameter. If bandList is null, it is taken to include all of the bands of the current WritableRaster in their current order.
To create a new WritableRaster that contains a subregion of the current WritableRaster, but shares its coordinate system and bands, this method should be called with childMinX equal to parentX, childMinY equal to parentY, and bandList equal to null.
@param parentX X coordinate of the upper left corner in thisWritableRaster's coordinates.
@param parentY Y coordinate of the upper left corner in thisWritableRaster's coordinates.
@param w Width of the region starting at (parentX, parentY).
@param h Height of the region starting at (parentX, parentY).
@param childMinX X coordinate of the upper left corner ofthe returned WritableRaster.
@param childMinY Y coordinate of the upper left corner ofthe returned WritableRaster.
@param bandList Array of band indices, or null to use all bands.
@return a WritableRaster
sharing all or part of theDataBuffer
of this WritableRaster
.
@exception RasterFormatException if the subregion is outside of theraster bounds.
@throws RasterFormatException if w
orh
is less than or equal to zero, or computing any of parentX + w
, parentY + h
, childMinX + w
, or childMinY + h
results in integer overflow
|
|
|
|
|
|