public class PCXImageWriter extends ImageWriter implements PCXConstants
Modifier and Type | Field and Description |
---|---|
private int |
bytesPerLine |
private int |
colorPlanes |
private Rectangle |
destinationRegion |
private Raster |
inputRaster |
private ImageOutputStream |
ios |
private int |
scaleX |
private int |
scaleY |
private Rectangle |
sourceRegion |
availableLocales, locale, originatingProvider, output, progressListeners, 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 |
---|
PCXImageWriter(PCXImageWriterSpi imageWriterSpi) |
Modifier and Type | Method and Description |
---|---|
IIOMetadata |
convertImageMetadata(IIOMetadata inData,
ImageTypeSpecifier imageType,
ImageWriteParam param) |
IIOMetadata |
convertStreamMetadata(IIOMetadata inData,
ImageWriteParam param) |
private byte[] |
createLargePalette(ColorModel cm) |
private byte[] |
createSmallPalette(ColorModel cm) |
IIOMetadata |
getDefaultImageMetadata(ImageTypeSpecifier imageType,
ImageWriteParam param) |
IIOMetadata |
getDefaultStreamMetadata(ImageWriteParam param) |
void |
setOutput(Object output) |
void |
write(IIOMetadata streamMetadata,
IIOImage image,
ImageWriteParam param) |
private void |
write1Bit() |
private void |
write4Bit() |
private void |
write8Bit() |
private void |
writeRLE(int val,
int count) |
abort, abortRequested, addIIOWriteProgressListener, addIIOWriteWarningListener, canInsertEmpty, canInsertImage, canRemoveImage, canReplaceImageMetadata, canReplacePixels, canReplaceStreamMetadata, canWriteEmpty, canWriteRasters, canWriteSequence, clearAbortRequest, dispose, endInsertEmpty, endReplacePixels, endWriteEmpty, endWriteSequence, getAvailableLocales, getDefaultWriteParam, getLocale, getNumThumbnailsSupported, getOriginatingProvider, getOutput, getPreferredThumbnailSizes, prepareInsertEmpty, prepareReplacePixels, prepareWriteEmpty, prepareWriteSequence, processImageComplete, processImageProgress, processImageStarted, processThumbnailComplete, processThumbnailProgress, processThumbnailStarted, processWarningOccurred, processWarningOccurred, processWriteAborted, removeAllIIOWriteProgressListeners, removeAllIIOWriteWarningListeners, removeIIOWriteProgressListener, removeIIOWriteWarningListener, removeImage, replaceImageMetadata, replacePixels, replacePixels, replaceStreamMetadata, reset, setLocale, write, write, writeInsert, writeToSequence
private ImageOutputStream ios
private Rectangle sourceRegion
private Rectangle destinationRegion
private int colorPlanes
private int bytesPerLine
private Raster inputRaster
private int scaleX
private int scaleY
public PCXImageWriter(PCXImageWriterSpi imageWriterSpi)
public void setOutput(Object output)
setOutput
in class ImageWriter
public IIOMetadata convertImageMetadata(IIOMetadata inData, ImageTypeSpecifier imageType, ImageWriteParam param)
convertImageMetadata
in interface ImageTranscoder
convertImageMetadata
in class ImageWriter
public IIOMetadata convertStreamMetadata(IIOMetadata inData, ImageWriteParam param)
convertStreamMetadata
in interface ImageTranscoder
convertStreamMetadata
in class ImageWriter
public IIOMetadata getDefaultImageMetadata(ImageTypeSpecifier imageType, ImageWriteParam param)
getDefaultImageMetadata
in class ImageWriter
public IIOMetadata getDefaultStreamMetadata(ImageWriteParam param)
getDefaultStreamMetadata
in class ImageWriter
public void write(IIOMetadata streamMetadata, IIOImage image, ImageWriteParam param) throws IOException
write
in class ImageWriter
IOException
private void write4Bit() throws IOException
IOException
private void write1Bit() throws IOException
IOException
private void write8Bit() throws IOException
IOException
private void writeRLE(int val, int count) throws IOException
IOException
private byte[] createSmallPalette(ColorModel cm)
private byte[] createLargePalette(ColorModel cm)
Copyright © 2016 Open Microscopy Environment