public class TiledFileOpImage
extends javax.media.jai.SourcelessOpImage
| Modifier and Type | Method and Description |
|---|---|
Raster |
computeTile(int tileX,
int tileY)
Computes a tile.
|
static TiledFileOpImage |
create(File imageDir,
Properties defaultImageProperties) |
static TiledFileOpImage |
create(Path imageDir,
Properties defaultImageProperties) |
static TiledFileOpImage |
create(VirtualDir imageDir,
Properties defaultImageProperties) |
void |
dispose() |
static Object |
getDataObject(Raster raster)
Gets the data object from the data buffer of the given raster.
|
static void |
readRawDataTile(ImageInputStream stream,
WritableRaster raster)
Reads the data buffer of the given raster from the given image input stream.
|
static void |
writeRawDataTile(Raster raster,
ImageOutputStream stream)
Writes the data buffer of the given raster to the given image output stream.
|
computesUniqueTiles, mapDestRect, mapSourceRectaddTileToCache, cancelTiles, computeRect, computeRect, createTile, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorizeaddPropertyChangeListener, addPropertyChangeListener, addSink, addSink, addSource, addTileComputationListener, copyData, copyData, copyExtendedData, createColorModel, createSnapshot, createWritableRaster, finalize, getAsBufferedImage, getAsBufferedImage, getBounds, getColorModel, getData, getData, getDefaultColorModel, getExtendedData, getGraphics, getHeight, getImageID, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumBands, getNumSources, getNumXTiles, getNumYTiles, getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSources, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSink, removeSinks, removeSource, removeSources, removeTileComputationListener, setImageLayout, setProperties, setProperty, setSource, setSources, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileYpublic static TiledFileOpImage create(File imageDir, Properties defaultImageProperties) throws IOException
IOExceptionpublic static TiledFileOpImage create(VirtualDir imageDir, Properties defaultImageProperties) throws IOException
IOExceptionpublic static TiledFileOpImage create(Path imageDir, Properties defaultImageProperties) throws IOException
IOExceptionpublic Raster computeTile(int tileX, int tileY)
Subclasses should implement the
computeRect(PlanarImage[], WritableRaster, Rectangle)
method to perform the actual computation.
computeTile in class javax.media.jai.SourcelessOpImagetileX - The X index of the tile.tileY - The Y index of the tile.public static void readRawDataTile(ImageInputStream stream, WritableRaster raster) throws IOException
raster - The raster.stream - The image input stream.IOException - if an I/O error occursIllegalArgumentException - if the raster's data arrays cannot be retrievedNullPointerException - if raster or stream is nullpublic static void writeRawDataTile(Raster raster, ImageOutputStream stream) throws IOException
raster - The raster.stream - The image output stream.IOException - if an I/O error occursIllegalArgumentException - if the raster's data arrays cannot be retrievedNullPointerException - if raster or stream is nullpublic static Object getDataObject(Raster raster)
raster - The raster.IllegalArgumentException - if the raster's data arrays cannot be retrievedNullPointerException - if raster is nullpublic void dispose()
dispose in class javax.media.jai.OpImageCopyright © 2014–2022 European Space Agency (ESA). All rights reserved.