public class OpenJp2ImageReader extends ImageReader
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales| Modifier | Constructor and Description |
|---|---|
protected |
OpenJp2ImageReader(ImageReaderSpi originatingProvider,
OpenJpeg lib) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
int |
getHeight(int imageIndex)
Get the height of the given resolution of the image.
|
IIOMetadata |
getImageMetadata(int imageIndex) |
Iterator<ImageTypeSpecifier> |
getImageTypes(int imageIndex) |
int |
getNumImages(boolean allowSearch)
Corresponds to the number of resolutions in the image.
|
IIOMetadata |
getStreamMetadata() |
int |
getTileGridXOffset(int imageIndex) |
int |
getTileGridYOffset(int imageIndex) |
int |
getTileHeight(int imageIndex) |
int |
getTileWidth(int imageIndex) |
int |
getWidth(int imageIndex)
Get the width of the given resolution of the image.
|
boolean |
isImageTiled(int imageIndex) |
BufferedImage |
read(int imageIndex,
ImageReadParam param)
Read the image in the given resolution.
|
BufferedImage |
readTile(int imageIndex,
int tileX,
int tileY) |
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata) |
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, hasThumbnails, isIgnoringMetadata, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, reset, setInput, setInput, setLocaleprotected OpenJp2ImageReader(ImageReaderSpi originatingProvider, OpenJpeg lib)
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput in class ImageReaderpublic int getNumImages(boolean allowSearch)
throws IOException
getNumImages in class ImageReaderIOExceptionpublic int getWidth(int imageIndex)
throws IOException
getWidth in class ImageReaderIOExceptionpublic int getHeight(int imageIndex)
throws IOException
getHeight in class ImageReaderIOExceptionpublic Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException
getImageTypes in class ImageReaderIOExceptionpublic BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read in class ImageReaderIOExceptionpublic boolean isImageTiled(int imageIndex)
throws IOException
isImageTiled in class ImageReaderIOExceptionpublic int getTileWidth(int imageIndex)
throws IOException
getTileWidth in class ImageReaderIOExceptionpublic int getTileHeight(int imageIndex)
throws IOException
getTileHeight in class ImageReaderIOExceptionpublic int getTileGridXOffset(int imageIndex)
throws IOException
getTileGridXOffset in class ImageReaderIOExceptionpublic int getTileGridYOffset(int imageIndex)
throws IOException
getTileGridYOffset in class ImageReaderIOExceptionpublic BufferedImage readTile(int imageIndex, int tileX, int tileY) throws IOException
readTile in class ImageReaderIOExceptionpublic IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata in class ImageReaderIOExceptionpublic IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata in class ImageReaderIOExceptionpublic void dispose()
dispose in class ImageReaderCopyright © 2019. All rights reserved.