Java javax.imageio ImageReader fields, constructors, methods, implement or subclass

Example usage for Java javax.imageio ImageReader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.imageio ImageReader.

The text is from its open source code.

Subclass

javax.imageio.ImageReader has subclasses.
Click this link to see all its subclasses.

Method

voidaddIIOReadProgressListener(IIOReadProgressListener listener)
Adds an IIOReadProgressListener to the list of registered progress listeners.
booleancanReadRaster()
Returns true if this plug-in supports reading just a java.awt.image.Raster Raster of pixel data.
voiddispose()
Allows any resources held by this object to be released.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
floatgetAspectRatio(int imageIndex)
Returns the aspect ratio of the given image (that is, its width divided by its height) as a float .
ClassgetClass()
Returns the runtime class of this Object .
ImageReadParamgetDefaultReadParam()
Returns a default ImageReadParam object appropriate for this format.
StringgetFormatName()
Returns a String identifying the format of the input source.
intgetHeight(int imageIndex)
Returns the height in pixels of the given image within the input source.
IIOMetadatagetImageMetadata(int imageIndex)
Returns an IIOMetadata object containing metadata associated with the given image, or null if the reader does not support reading metadata, is set to ignore metadata, or if no metadata is available.
IIOMetadatagetImageMetadata(int imageIndex, String formatName, Set nodeNames)
Returns an IIOMetadata object representing the metadata associated with the given image, or null if the reader does not support reading metadata or none is available.
IteratorgetImageTypes(int imageIndex)
Returns an Iterator containing possible image types to which the given image may be decoded, in the form of ImageTypeSpecifiers s.
ObjectgetInput()
Returns the ImageInputStream or other Object previously set as the input source.
intgetMinIndex()
Returns the lowest valid index for reading an image, thumbnail, or image metadata.
intgetNumImages(boolean allowSearch)
Returns the number of images, not including thumbnails, available from the current input source.
intgetNumThumbnails(int imageIndex)
Returns the number of thumbnail preview images associated with the given image.
ImageReaderSpigetOriginatingProvider()
Returns the ImageReaderSpi that was passed in on the constructor.
IIOMetadatagetStreamMetadata()
Returns an IIOMetadata object representing the metadata associated with the input source as a whole (i.e., not associated with any particular image), or null if the reader does not support reading metadata, is set to ignore metadata, or if no metadata is available.
intgetThumbnailHeight(int imageIndex, int thumbnailIndex)
Returns the height of the thumbnail preview image indexed by thumbnailIndex , associated with the image indexed by ImageIndex .
intgetThumbnailWidth(int imageIndex, int thumbnailIndex)
Returns the width of the thumbnail preview image indexed by thumbnailIndex , associated with the image indexed by ImageIndex .
intgetTileHeight(int imageIndex)
Returns the height of a tile in the given image.
intgetTileWidth(int imageIndex)
Returns the width of a tile in the given image.
intgetWidth(int imageIndex)
Returns the width in pixels of the given image within the input source.
booleanisImageTiled(int imageIndex)
Returns true if the image is organized into tiles, that is, equal-sized non-overlapping rectangles.
booleanisSeekForwardOnly()
Returns true if the current input source has been marked as seek forward only by passing true as the seekForwardOnly argument to the setInput method.
BufferedImageread(int imageIndex)
Reads the image indexed by imageIndex and returns it as a complete BufferedImage , using a default ImageReadParam .
BufferedImageread(int imageIndex, ImageReadParam param)
Reads the image indexed by imageIndex and returns it as a complete BufferedImage , using a supplied ImageReadParam .
IIOImagereadAll(int imageIndex, ImageReadParam param)
Reads the image indexed by imageIndex and returns an IIOImage containing the image, thumbnails, and associated image metadata, using a supplied ImageReadParam .
RasterreadRaster(int imageIndex, ImageReadParam param)
Returns a new Raster object containing the raw pixel data from the image stream, without any color conversion applied.
BufferedImagereadThumbnail(int imageIndex, int thumbnailIndex)
Returns the thumbnail preview image indexed by thumbnailIndex , associated with the image indexed by ImageIndex as a BufferedImage .
BufferedImagereadTile(int imageIndex, int tileX, int tileY)
Reads the tile indicated by the tileX and tileY arguments, returning it as a BufferedImage .
voidreset()
Restores the ImageReader to its initial state.
voidsetInput(Object input)
Sets the input source to use to the given ImageInputStream or other Object .
voidsetInput(Object input, boolean seekForwardOnly)
Sets the input source to use to the given ImageInputStream or other Object .
voidsetInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
Sets the input source to use to the given ImageInputStream or other Object .