Class PcxWriter
- java.lang.Object
-
- org.apache.commons.imaging.formats.pcx.PcxWriter
-
class PcxWriter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitDepthWanted
private int
encoding
private PixelDensity
pixelDensity
private int
planesWanted
private RleWriter
rleWriter
-
Constructor Summary
Constructors Constructor Description PcxWriter(java.util.Map<java.lang.String,java.lang.Object> params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeImage(java.awt.image.BufferedImage src, java.io.OutputStream os)
private void
writePixels(java.awt.image.BufferedImage src, int bitDepth, int planes, int bytesPerLine, SimplePalette palette, BinaryOutputStream bos)
private void
writePixels32(java.awt.image.BufferedImage src, int bytesPerLine, BinaryOutputStream bos)
-
-
-
Field Detail
-
encoding
private int encoding
-
bitDepthWanted
private int bitDepthWanted
-
planesWanted
private int planesWanted
-
pixelDensity
private PixelDensity pixelDensity
-
rleWriter
private final RleWriter rleWriter
-
-
Constructor Detail
-
PcxWriter
PcxWriter(java.util.Map<java.lang.String,java.lang.Object> params) throws ImageWriteException
- Throws:
ImageWriteException
-
-
Method Detail
-
writeImage
public void writeImage(java.awt.image.BufferedImage src, java.io.OutputStream os) throws ImageWriteException, java.io.IOException
- Throws:
ImageWriteException
java.io.IOException
-
writePixels
private void writePixels(java.awt.image.BufferedImage src, int bitDepth, int planes, int bytesPerLine, SimplePalette palette, BinaryOutputStream bos) throws java.io.IOException, ImageWriteException
- Throws:
java.io.IOException
ImageWriteException
-
writePixels32
private void writePixels32(java.awt.image.BufferedImage src, int bytesPerLine, BinaryOutputStream bos) throws java.io.IOException, ImageWriteException
- Throws:
java.io.IOException
ImageWriteException
-
-