public final class TIFFImageReader extends ImageReaderBase
The reader is supposed to be fully "Baseline TIFF" compliant, and supports the following image types:
imageInputavailableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales| Modifier and Type | Method and Description |
|---|---|
boolean |
canReadRaster() |
int |
getHeight(int imageIndex) |
IIOMetadata |
getImageMetadata(int imageIndex) |
Iterator<ImageTypeSpecifier> |
getImageTypes(int imageIndex) |
int |
getNumImages(boolean allowSearch) |
ImageTypeSpecifier |
getRawImageType(int imageIndex) |
IIOMetadata |
getStreamMetadata() |
int |
getTileHeight(int imageIndex) |
int |
getTileWidth(int imageIndex) |
int |
getWidth(int imageIndex) |
boolean |
isImageTiled(int imageIndex) |
static void |
main(String[] args) |
BufferedImage |
read(int imageIndex,
ImageReadParam param) |
Raster |
readRaster(int imageIndex,
ImageReadParam param) |
BufferedImage |
readTile(int imageIndex,
int tileX,
int tileY) |
Raster |
readTileRaster(int imageIndex,
int tileX,
int tileY) |
protected void |
resetMembers() |
protected static void |
showIt(BufferedImage image,
String title) |
assertInput, checkBounds, dispose, fakeAOI, fakeSubsampling, getDestination, hasExplicitDestination, reset, setInputabort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, 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, readThumbnail, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocaleprotected void resetMembers()
resetMembers in class ImageReaderBasepublic int getNumImages(boolean allowSearch)
throws IOException
getNumImages in class ImageReaderBaseIOExceptionpublic int getWidth(int imageIndex)
throws IOException
getWidth in class ImageReaderIOExceptionpublic int getHeight(int imageIndex)
throws IOException
getHeight in class ImageReaderIOExceptionpublic ImageTypeSpecifier getRawImageType(int imageIndex) throws IOException
getRawImageType 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 canReadRaster()
canReadRaster in class ImageReaderpublic Raster readRaster(int imageIndex, ImageReadParam param) throws IOException
readRaster 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 BufferedImage readTile(int imageIndex, int tileX, int tileY) throws IOException
readTile in class ImageReaderIOExceptionpublic Raster readTileRaster(int imageIndex, int tileX, int tileY) throws IOException
readTileRaster in class ImageReaderIOExceptionpublic IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata in class ImageReaderBaseIOExceptionpublic IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata in class ImageReaderBaseIOExceptionpublic static void main(String[] args) throws IOException
IOExceptionprotected static void showIt(BufferedImage image, String title)
Copyright © 2022. All rights reserved.