Class PCXImageReader
java.lang.Object
javax.imageio.ImageReader
com.github.jaiimageio.impl.plugins.pcx.PCXImageReader
- All Implemented Interfaces:
PCXConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BufferedImage
The destination image.private short
private ColorModel
private byte
private int[]
source and destination bands.private Rectangle
The destination region.private byte
private boolean
private int
private ImageInputStream
private byte[]
private byte
private PCXMetadata
private boolean
Indicates whether subsampled, subregion is required, and offset is definedprivate ColorModel
private SampleModel
private short
private SampleModel
private int
The scaling factors.private int
The scaling factors.private boolean
Indicates whether subband is selected.private byte[]
private int[]
source and destination bands.private Rectangle
The source region.private int
private short
private short
Fields inherited from class javax.imageio.ImageReader
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
Fields inherited from interface com.github.jaiimageio.impl.plugins.pcx.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 void
checkIndex
(int imageIndex) int
getHeight
(int imageIndex) getImageMetadata
(int imageIndex) getImageTypes
(int imageIndex) int
getNumImages
(boolean allowSearch) int
getWidth
(int imageIndex) read
(int imageIndex, ImageReadParam param) private void
read1Bit
(byte[] data) private void
read4Bit
(byte[] data) private void
read8Bit
(byte[] data) private void
private void
readImage
(byte[] data) private void
readScanLine
(byte[] buffer) void
Methods inherited from class javax.imageio.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:
setInput
in classImageReader
-
getHeight
- Specified by:
getHeight
in classImageReader
- Throws:
IOException
-
getImageMetadata
- Specified by:
getImageMetadata
in classImageReader
- Throws:
IOException
-
getImageTypes
- Specified by:
getImageTypes
in classImageReader
- Throws:
IOException
-
getNumImages
- Specified by:
getNumImages
in classImageReader
- Throws:
IOException
-
getStreamMetadata
- Specified by:
getStreamMetadata
in classImageReader
- Throws:
IOException
-
getWidth
- Specified by:
getWidth
in classImageReader
- Throws:
IOException
-
read
- Specified by:
read
in 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
-