public class IFFImageReader
extends com.twelvemonkeys.imageio.ImageReaderBase
BufferedImage of
TYPE_BYTE_INDEXED or
BufferedImage#
depending on the bit depth.
Gray images are read as
TYPE_BYTE_GRAY.
24 bit true-color images are read as
TYPE_3BYTE_BGR.
32 bit true-color images are read as
TYPE_4BYTE_ABGR.
Issues: HAM and HAM8 (Hold and Modify) formats are converted to RGB (24 bit),
as it seems to be very hard to create an IndexColorModel subclass
that would correctly describe these formats.
These formats utilizes the special display hardware in the Amiga computers.
HAM (6 bits) needs 12 bits storage/pixel, if unpacked to RGB (4 bits/gun).
HAM8 (8 bits) needs 18 bits storage/pixel, if unpacked to RGB (6 bits/gun).
See Wikipedia: HAM
for more information.
IndexColorModel with 64 entries.
See Wikipedia: EHB
for more information.availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales| Modifier | Constructor | Description |
|---|---|---|
|
IFFImageReader() |
|
protected |
IFFImageReader(ImageReaderSpi pProvider) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getHeight(int pIndex) |
|
Iterator<ImageTypeSpecifier> |
getImageTypes(int pIndex) |
|
ImageTypeSpecifier |
getRawImageType(int pIndex) |
|
int |
getWidth(int pIndex) |
|
boolean |
isLaced() |
|
static void |
main(String[] pArgs) |
|
BufferedImage |
read(int pIndex,
ImageReadParam pParam) |
|
protected void |
resetMembers() |
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, 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, setInput, setInput, setLocalepublic IFFImageReader()
protected IFFImageReader(ImageReaderSpi pProvider)
protected void resetMembers()
resetMembers in class com.twelvemonkeys.imageio.ImageReaderBasepublic BufferedImage read(int pIndex, ImageReadParam pParam) throws IOException
read in class ImageReaderIOExceptionpublic int getWidth(int pIndex)
throws IOException
getWidth in class ImageReaderIOExceptionpublic int getHeight(int pIndex)
throws IOException
getHeight in class ImageReaderIOExceptionpublic Iterator<ImageTypeSpecifier> getImageTypes(int pIndex) throws IOException
getImageTypes in class ImageReaderIOExceptionpublic ImageTypeSpecifier getRawImageType(int pIndex) throws IOException
getRawImageType in class ImageReaderIOExceptionpublic boolean isLaced()
public static void main(String[] pArgs) throws IOException
IOExceptionCopyright © 2018. All rights reserved.