Class RawRenderedImage
java.lang.Object
com.github.jaiimageio.impl.common.SimpleRenderedImage
com.github.jaiimageio.impl.plugins.raw.RawRenderedImage
- All Implemented Interfaces:
RenderedImage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Raster
private Point
private BufferedImage
private int[]
private Rectangle
The destination bounds.private RawImageInputStream
The input stream we read fromprivate int
private int
private int
private int
private boolean
Coordinate transform is not needed from the source (image stream) to the destination.private Dimension
private int
The orginal number tiles in X direction.private Rectangle
private SampleModel
The sample model for the original image.private ImageReadParam
TheImageReadParam
to create thisrenderedImage
.private long
The position of the first sample of this image in the stream.private WritableRaster
The raster for medialib tiles to share.private RawImageReader
Caches theRawImageReader
which creates this object.private int
The subsampling parameters.private int
The subsampling parameters.private int[]
private Point
private long
cache the size of the data for each tile in the stream.private int
The subsampling parameters.private int
The subsampling parameters.Fields inherited from class com.github.jaiimageio.impl.common.SimpleRenderedImage
colorModel, height, minX, minY, properties, sampleModel, sources, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
-
Constructor Summary
ConstructorsConstructorDescriptionRawRenderedImage
(RawImageInputStream iis, RawImageReader reader, ImageReadParam param, int imageIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private int
clip
(int value, int min, int max) 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) Methods inherited from class com.github.jaiimageio.impl.common.SimpleRenderedImage
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
-
Field Details
-
originalSampleModel
The sample model for the original image. -
currentTile
-
currentTileGrid
-
iis
The input stream we read from -
reader
Caches theRawImageReader
which creates this object. This variable is used to monitor the abortion. -
param
TheImageReadParam
to create thisrenderedImage
. -
imageIndex
private int imageIndex -
destinationRegion
The destination bounds. -
originalRegion
-
sourceOrigin
-
originalDimension
-
maxXTile
private int maxXTile -
maxYTile
private int maxYTile -
scaleX
private int scaleXThe subsampling parameters. -
scaleY
private int scaleYThe subsampling parameters. -
xOffset
private int xOffsetThe subsampling parameters. -
yOffset
private int yOffsetThe subsampling parameters. -
destinationBands
private int[] destinationBands -
sourceBands
private int[] sourceBands -
nComp
private int nComp -
noTransform
private boolean noTransformCoordinate transform is not needed from the source (image stream) to the destination. -
rasForATile
The raster for medialib tiles to share. -
destImage
-
position
private long positionThe position of the first sample of this image in the stream. -
tileDataSize
private long tileDataSizecache the size of the data for each tile in the stream. -
originalNumXTiles
private int originalNumXTilesThe orginal number tiles in X direction.
-
-
Constructor Details
-
RawRenderedImage
public RawRenderedImage(RawImageInputStream iis, RawImageReader reader, ImageReadParam param, int imageIndex) throws IOException - Throws:
IOException
-
-
Method Details
-
getTile
-
readAsRaster
- Throws:
IOException
-
readSubsampledRaster
- Throws:
IOException
-
setDestImage
-
clearDestImage
public void clearDestImage() -
getTileNum
private int getTileNum(int x, int y) -
clip
private int clip(int value, int min, int max)
-