public class PCXImageReader extends ImageReader implements PCXConstants
Modifier and Type | Field and Description |
---|---|
private BufferedImage |
bi
The destination image.
|
private short |
bytesPerLine |
private ColorModel |
colorModel |
private byte |
colorPlanes |
private int[] |
destBands
source and destination bands.
|
private Rectangle |
destinationRegion
The destination region.
|
private byte |
encoding |
private boolean |
gotHeader |
private int |
height |
private ImageInputStream |
iis |
private byte[] |
largePalette |
private byte |
manufacturer |
private PCXMetadata |
metadata |
private boolean |
noTransform
Indicates whether subsampled, subregion is required, and offset is
defined
|
private ColorModel |
originalColorModel |
private SampleModel |
originalSampleModel |
private short |
paletteType |
private SampleModel |
sampleModel |
private int |
scaleX
The scaling factors.
|
private int |
scaleY
The scaling factors.
|
private boolean |
seleBand
Indicates whether subband is selected.
|
private byte[] |
smallPalette |
private int[] |
sourceBands
source and destination bands.
|
private Rectangle |
sourceRegion
The source region.
|
private int |
width |
private short |
xmax |
private short |
ymax |
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
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 and Description |
---|
PCXImageReader(PCXImageReaderSpi imageReaderSpi) |
Modifier and Type | Method and Description |
---|---|
private void |
checkIndex(int imageIndex) |
int |
getHeight(int imageIndex) |
IIOMetadata |
getImageMetadata(int imageIndex) |
Iterator |
getImageTypes(int imageIndex) |
int |
getNumImages(boolean allowSearch) |
IIOMetadata |
getStreamMetadata() |
int |
getWidth(int imageIndex) |
BufferedImage |
read(int imageIndex,
ImageReadParam param) |
private void |
read1Bit(byte[] data) |
private void |
read4Bit(byte[] data) |
private void |
read8Bit(byte[] data) |
private void |
readHeader() |
private void |
readImage(byte[] data) |
private void |
readScanLine(byte[] buffer) |
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata) |
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
private ImageInputStream iis
private int width
private int height
private boolean gotHeader
private byte manufacturer
private byte encoding
private short xmax
private short ymax
private byte[] smallPalette
private byte[] largePalette
private byte colorPlanes
private short bytesPerLine
private short paletteType
private PCXMetadata metadata
private SampleModel sampleModel
private SampleModel originalSampleModel
private ColorModel colorModel
private ColorModel originalColorModel
private Rectangle destinationRegion
private Rectangle sourceRegion
private BufferedImage bi
private boolean noTransform
private boolean seleBand
private int scaleX
private int scaleY
private int[] sourceBands
private int[] destBands
public PCXImageReader(PCXImageReaderSpi imageReaderSpi)
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput
in class ImageReader
public int getHeight(int imageIndex) throws IOException
getHeight
in class ImageReader
IOException
public IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata
in class ImageReader
IOException
public Iterator getImageTypes(int imageIndex) throws IOException
getImageTypes
in class ImageReader
IOException
public int getNumImages(boolean allowSearch) throws IOException
getNumImages
in class ImageReader
IOException
public IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata
in class ImageReader
IOException
public int getWidth(int imageIndex) throws IOException
getWidth
in class ImageReader
IOException
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read
in class ImageReader
IOException
private void readImage(byte[] data) throws IOException
IOException
private void read1Bit(byte[] data) throws IOException
IOException
private void read4Bit(byte[] data) throws IOException
IOException
private void read8Bit(byte[] data) throws IOException
IOException
private void readScanLine(byte[] buffer) throws IOException
IOException
private void checkIndex(int imageIndex)
private void readHeader() throws IOException
IOException
Copyright © 2015 Open Microscopy Environment