Class ILBMImageReader
java.lang.Object
javax.imageio.ImageReader
org.monte.media.ilbm.ILBMImageReader
- All Implemented Interfaces:
AnimatedImageReader
Reads an image in the Amiga IFF Interleaved Bitmap image format (ILBM).
- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from class javax.imageio.ImageReader
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetAspectRatio(int imageIndex) Returns the aspect ratio of the given image (that is, its width divided by its height) as afloat.intgetHeight(int imageIndex) getImageMetadata(int imageIndex) getImageTypes(int imageIndex) intgetNumImages(boolean allowSearch) intgetWidth(int imageIndex) read(int imageIndex, ImageReadParam param) readAnimatedImage(int imageIndex) Methods inherited from class javax.imageio.ImageReader
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, 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, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, reset, setInput, setInput, setInput, setLocale
-
Constructor Details
-
ILBMImageReader
-
-
Method Details
-
getNumImages
- Specified by:
getNumImagesin classImageReader- Throws:
IOException
-
getWidth
- Specified by:
getWidthin classImageReader- Throws:
IOException
-
getHeight
- Specified by:
getHeightin classImageReader- Throws:
IOException
-
getImageTypes
- Specified by:
getImageTypesin classImageReader- Throws:
IOException
-
getAspectRatio
Returns the aspect ratio of the given image (that is, its width divided by its height) as afloat. For images that are inherently resizable, this method provides a way to determine the appropriate width given a deired height, or vice versa. For non-resizable images, the true width and height are used.The default implementation simply returns
(float)getWidth(imageIndex)/getHeight(imageIndex).- Overrides:
getAspectRatioin classImageReader- Parameters:
imageIndex- the index of the image to be queried.- Returns:
- a
floatindicating the aspect ratio of the given image. - Throws:
IllegalStateException- if the input source has not been set.IndexOutOfBoundsException- if the supplied index is out of bounds.IOException- if an error occurs during reading.
-
getStreamMetadata
- Specified by:
getStreamMetadatain classImageReader- Throws:
IOException
-
getImageMetadata
- Specified by:
getImageMetadatain classImageReader- Throws:
IOException
-
read
- Specified by:
readin classImageReader- Throws:
IOException
-
readAnimatedImage
- Specified by:
readAnimatedImagein interfaceAnimatedImageReader- Throws:
IOException
-