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 and Description |
---|---|
|
IFFImageReader() |
protected |
IFFImageReader(ImageReaderSpi pProvider) |
Modifier and Type | Method and 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() |
assertInput, checkBounds, dispose, fakeAOI, fakeSubsampling, getDestination, getImageMetadata, getNumImages, getStreamMetadata, hasExplicitDestination, reset, setInput, showIt
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, setLocale
public IFFImageReader()
protected IFFImageReader(ImageReaderSpi pProvider)
protected void resetMembers()
resetMembers
in class com.twelvemonkeys.imageio.ImageReaderBase
public BufferedImage read(int pIndex, ImageReadParam pParam) throws IOException
read
in class ImageReader
IOException
public int getWidth(int pIndex) throws IOException
getWidth
in class ImageReader
IOException
public int getHeight(int pIndex) throws IOException
getHeight
in class ImageReader
IOException
public Iterator<ImageTypeSpecifier> getImageTypes(int pIndex) throws IOException
getImageTypes
in class ImageReader
IOException
public ImageTypeSpecifier getRawImageType(int pIndex) throws IOException
getRawImageType
in class ImageReader
IOException
public boolean isLaced()
public static void main(String[] pArgs) throws IOException
IOException
Copyright © 2017. All rights reserved.