public class RawRenderedImage extends SimpleRenderedImage
Modifier and Type | Field and Description |
---|---|
private Raster |
currentTile |
private Point |
currentTileGrid |
private BufferedImage |
destImage |
private int[] |
destinationBands |
private Rectangle |
destinationRegion
The destination bounds.
|
private RawImageInputStream |
iis
The input stream we read from
|
private int |
imageIndex |
private int |
maxXTile |
private int |
maxYTile |
private int |
nComp |
private boolean |
noTransform
Coordinate transform is not needed from the source (image stream)
to the destination.
|
private Dimension |
originalDimension |
private int |
originalNumXTiles
The orginal number tiles in X direction.
|
private Rectangle |
originalRegion |
private SampleModel |
originalSampleModel
The sample model for the original image.
|
private ImageReadParam |
param
The
ImageReadParam to create this
renderedImage . |
private long |
position
The position of the first sample of this image in the stream.
|
private WritableRaster |
rasForATile
The raster for medialib tiles to share.
|
private RawImageReader |
reader
Caches the
RawImageReader which creates this object. |
private int |
scaleX
The subsampling parameters.
|
private int |
scaleY
The subsampling parameters.
|
private int[] |
sourceBands |
private Point |
sourceOrigin |
private long |
tileDataSize
cache the size of the data for each tile in the stream.
|
private int |
xOffset
The subsampling parameters.
|
private int |
yOffset
The subsampling parameters.
|
colorModel, height, minX, minY, properties, sampleModel, sources, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
Constructor and Description |
---|
RawRenderedImage(RawImageInputStream iis,
RawImageReader reader,
ImageReadParam param,
int imageIndex) |
Modifier and Type | Method and Description |
---|---|
void |
clearDestImage() |
private int |
clip(int value,
int min,
int max) |
Raster |
getTile(int tileX,
int tileY) |
private int |
getTileNum(int x,
int y) |
void |
readAsRaster(WritableRaster raster) |
private Raster |
readSubsampledRaster(WritableRaster raster) |
void |
setDestImage(BufferedImage image) |
copyData, getBounds, getColorModel, getData, getData, getHeight, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getPropertyNames, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, tileXToX, tileXToX, tileYToY, tileYToY, XToTileX, XToTileX, YToTileY, YToTileY
private SampleModel originalSampleModel
private Raster currentTile
private Point currentTileGrid
private RawImageInputStream iis
private RawImageReader reader
RawImageReader
which creates this object. This
variable is used to monitor the abortion.private ImageReadParam param
ImageReadParam
to create this
renderedImage
.private int imageIndex
private Rectangle destinationRegion
private Rectangle originalRegion
private Point sourceOrigin
private Dimension originalDimension
private int maxXTile
private int maxYTile
private int scaleX
private int scaleY
private int xOffset
private int yOffset
private int[] destinationBands
private int[] sourceBands
private int nComp
private boolean noTransform
private WritableRaster rasForATile
private BufferedImage destImage
private long position
private long tileDataSize
private int originalNumXTiles
public RawRenderedImage(RawImageInputStream iis, RawImageReader reader, ImageReadParam param, int imageIndex) throws IOException
IOException
public Raster getTile(int tileX, int tileY)
public void readAsRaster(WritableRaster raster) throws IOException
IOException
private Raster readSubsampledRaster(WritableRaster raster) throws IOException
IOException
public void setDestImage(BufferedImage image)
public void clearDestImage()
private int getTileNum(int x, int y)
private int clip(int value, int min, int max)
Copyright © 2016 Open Microscopy Environment