Package loci.formats.gui
Class BufferedImageReader
java.lang.Object
loci.formats.ReaderWrapper
loci.formats.gui.BufferedImageReader
- All Implemented Interfaces:
Closeable,AutoCloseable,ICompressedTileReader,IFormatHandler,IFormatReader,IMetadataConfigurable,IPyramidHandler
A reader wrapper for reading image planes as BufferedImage objects.
-
Field Summary
Fields inherited from class loci.formats.ReaderWrapper
readerFields inherited from interface loci.formats.IFormatReader
CAN_GROUP, CANNOT_GROUP, MUST_GROUP -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a BufferedImageReader around a new image reader.Constructs a BufferedImageReader with the given reader. -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImageReaderConverts the given reader into a BufferedImageReader, wrapping if needed.openImage(int no) Obtains the specified image from the current file.openImage(int no, int x, int y, int w, int h) Obtains a sub-image of the specified image, whose upper-left corner is given by (x, y).openThumbImage(int no) Obtains a thumbnail for the specified image from the current file.Methods inherited from class loci.formats.ReaderWrapper
close, close, coreIndexToSeries, duplicate, fileGroupOption, get16BitLookupTable, get8BitLookupTable, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getBitsPerPixel, getCoreIndex, getCoreMetadataList, getCurrentFile, getDatasetStructureDescription, getDimensionOrder, getDomains, getEffectiveSizeC, getFillColor, getFormat, getGlobalMetadata, getImageCount, getIndex, getIndex, getMetadataOptions, getMetadataStore, getMetadataStoreRoot, getMetadataValue, getModuloC, getModuloT, getModuloZ, getNativeDataType, getOptimalTileHeight, getOptimalTileWidth, getPixelType, getPossibleDomains, getReader, getRequiredDirectories, getResolution, getResolutionCount, getRGBChannelCount, getSeries, getSeriesCount, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getSuffixes, getSupportedMetadataLevels, getThumbSizeX, getThumbSizeY, getTileCodec, getTileCodecOptions, getTileColumns, getTileRows, getUnderlyingReaders, getUsedFiles, getUsedFiles, getZCTCoords, getZCTModuloCoords, hasCompanionFiles, hasFlattenedResolutions, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, isThisType, isThisType, isThisType, isThumbnailSeries, openBytes, openBytes, openBytes, openBytes, openCompressedBytes, openCompressedBytes, openPlane, openThumbBytes, reopenFile, seriesToCoreIndex, setCoreIndex, setFillColor, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataOptions, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeries, unwrap, unwrap, unwrap
-
Constructor Details
-
BufferedImageReader
public BufferedImageReader()Constructs a BufferedImageReader around a new image reader. -
BufferedImageReader
Constructs a BufferedImageReader with the given reader.
-
-
Method Details
-
makeBufferedImageReader
Converts the given reader into a BufferedImageReader, wrapping if needed. -
openImage
Obtains the specified image from the current file.- Throws:
FormatExceptionIOException
-
openImage
public BufferedImage openImage(int no, int x, int y, int w, int h) throws FormatException, IOException Obtains a sub-image of the specified image, whose upper-left corner is given by (x, y).- Throws:
FormatExceptionIOException
-
openThumbImage
Obtains a thumbnail for the specified image from the current file.- Throws:
FormatExceptionIOException
-