Class PCXImageReader
java.lang.Object
javax.imageio.ImageReader
com.github.jaiimageio.impl.plugins.pcx.PCXImageReader
- All Implemented Interfaces:
PCXConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BufferedImageThe destination image.private shortprivate ColorModelprivate byteprivate int[]source and destination bands.private RectangleThe destination region.private byteprivate booleanprivate intprivate ImageInputStreamprivate byte[]private byteprivate PCXMetadataprivate booleanIndicates whether subsampled, subregion is required, and offset is definedprivate ColorModelprivate SampleModelprivate shortprivate SampleModelprivate intThe scaling factors.private intThe scaling factors.private booleanIndicates whether subband is selected.private byte[]private int[]source and destination bands.private RectangleThe source region.private intprivate shortprivate shortFields inherited from class ImageReader
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocalesFields inherited from interface PCXConstants
ENCODING, MANUFACTURER, PALETTE_COLOR, PALETTE_GRAYSCALE, VERSION_2_5, VERSION_2_8_W_PALETTE, VERSION_2_8_WO_PALETTE, VERSION_3_0, VERSION_PC_WINDOWS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckIndex(int imageIndex) intgetHeight(int imageIndex) getImageMetadata(int imageIndex) getImageTypes(int imageIndex) intgetNumImages(boolean allowSearch) intgetWidth(int imageIndex) read(int imageIndex, ImageReadParam param) private voidread1Bit(byte[] data) private voidread4Bit(byte[] data) private voidread8Bit(byte[] data) private voidprivate voidreadImage(byte[] data) private voidreadScanLine(byte[] buffer) voidMethods inherited from class ImageReader
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, 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, setLocale
-
Field Details
-
iis
-
width
private int width -
height
private int height -
gotHeader
private boolean gotHeader -
manufacturer
private byte manufacturer -
encoding
private byte encoding -
xmax
private short xmax -
ymax
private short ymax -
smallPalette
private byte[] smallPalette -
largePalette
private byte[] largePalette -
colorPlanes
private byte colorPlanes -
bytesPerLine
private short bytesPerLine -
paletteType
private short paletteType -
metadata
-
sampleModel
-
originalSampleModel
-
colorModel
-
originalColorModel
-
destinationRegion
The destination region. -
sourceRegion
The source region. -
bi
The destination image. -
noTransform
private boolean noTransformIndicates whether subsampled, subregion is required, and offset is defined -
seleBand
private boolean seleBandIndicates whether subband is selected. -
scaleX
private int scaleXThe scaling factors. -
scaleY
private int scaleYThe scaling factors. -
sourceBands
private int[] sourceBandssource and destination bands. -
destBands
private int[] destBandssource and destination bands.
-
-
Constructor Details
-
PCXImageReader
-
-
Method Details
-
setInput
- Overrides:
setInputin classImageReader
-
getHeight
- Specified by:
getHeightin classImageReader- Throws:
IOException
-
getImageMetadata
- Specified by:
getImageMetadatain classImageReader- Throws:
IOException
-
getImageTypes
- Specified by:
getImageTypesin classImageReader- Throws:
IOException
-
getNumImages
- Specified by:
getNumImagesin classImageReader- Throws:
IOException
-
getStreamMetadata
- Specified by:
getStreamMetadatain classImageReader- Throws:
IOException
-
getWidth
- Specified by:
getWidthin classImageReader- Throws:
IOException
-
read
- Specified by:
readin classImageReader- Throws:
IOException
-
readImage
- Throws:
IOException
-
read1Bit
- Throws:
IOException
-
read4Bit
- Throws:
IOException
-
read8Bit
- Throws:
IOException
-
readScanLine
- Throws:
IOException
-
checkIndex
private void checkIndex(int imageIndex) -
readHeader
- Throws:
IOException
-