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 Rasterprivate Pointprivate BufferedImageprivate int[]private RectangleThe destination bounds.private RawImageInputStreamThe input stream we read fromprivate intprivate intprivate intprivate intprivate booleanCoordinate transform is not needed from the source (image stream) to the destination.private Dimensionprivate intThe orginal number tiles in X direction.private Rectangleprivate SampleModelThe sample model for the original image.private ImageReadParamTheImageReadParamto create thisrenderedImage.private longThe position of the first sample of this image in the stream.private WritableRasterThe raster for medialib tiles to share.private RawImageReaderCaches theRawImageReaderwhich creates this object.private intThe subsampling parameters.private intThe subsampling parameters.private int[]private Pointprivate longcache the size of the data for each tile in the stream.private intThe subsampling parameters.private intThe subsampling parameters.Fields inherited from class 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 TypeMethodDescriptionvoidprivate intclip(int value, int min, int max) getTile(int tileX, int tileY) private intgetTileNum(int x, int y) voidreadAsRaster(WritableRaster raster) private RasterreadSubsampledRaster(WritableRaster raster) voidsetDestImage(BufferedImage image) Methods inherited from class 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 theRawImageReaderwhich creates this object. This variable is used to monitor the abortion. -
param
TheImageReadParamto 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)
-