| javax.media.jai.PointOpImage com.sun.media.jai.opimage.CropOpImage
CropOpImage | final class CropOpImage extends PointOpImage (Code) | | An OpImage to crop an image by a rectangular region.
Tiles that are completely inside or intersect the cropped region
(this image's bounds) are simply forwarded from the source. Do NOT
create a child raster even if a tile is not contained in this image's
bounds. Tiles that are outside the croppped region result in a
null return.
This operator maintains the source image's tile grid setting and
sample and color models.
since: EA4 |
Constructor Summary | |
public | CropOpImage(RenderedImage source, float originX, float originY, float width, float height) Construct an CropOpImage. |
Method Summary | |
public Raster | computeTile(int tileX, int tileY) Override computeTile() simply to invoke getTile(). | public boolean | computesUniqueTiles() Returns false as computeTile() invocations
are forwarded to the RenderedImage source and are
therefore not unique objects in the global sense. | public Raster | getTile(int tileX, int tileY) Returns a tile.
For those tiles that are completely contained in or intersect
with this image's bounds (the cropped region), simply returns the
source tile. |
CropOpImage | public CropOpImage(RenderedImage source, float originX, float originY, float width, float height)(Code) | | Construct an CropOpImage.
Parameters: source - a RenderedImage. Parameters: originX - the new cropping rectangle x origin. Parameters: originY - the new cropping rectangle y origin. Parameters: width - the width of the cropping rectangle. Parameters: height - the width of the cropping rectangle. |
computeTile | public Raster computeTile(int tileX, int tileY)(Code) | | Override computeTile() simply to invoke getTile(). Required
so that the TileScheduler may invoke computeTile().
|
computesUniqueTiles | public boolean computesUniqueTiles()(Code) | | Returns false as computeTile() invocations
are forwarded to the RenderedImage source and are
therefore not unique objects in the global sense.
|
getTile | public Raster getTile(int tileX, int tileY)(Code) | | Returns a tile.
For those tiles that are completely contained in or intersect
with this image's bounds (the cropped region), simply returns the
source tile. Tiles that are outside this image's bound result in
null return.
Parameters: tileX - The X index of the tile. Parameters: tileY - The Y index of the tile. |
|
|