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 intbitDepthWantedprivate intencodingprivate PixelDensitypixelDensityprivate intplanesWantedprivate RleWriterrleWriter
-
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 voidwriteImage(java.awt.image.BufferedImage src, java.io.OutputStream os)private voidwritePixels(java.awt.image.BufferedImage src, int bitDepth, int planes, int bytesPerLine, SimplePalette palette, BinaryOutputStream bos)private voidwritePixels32(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:
ImageWriteExceptionjava.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.IOExceptionImageWriteException
-
writePixels32
private void writePixels32(java.awt.image.BufferedImage src, int bytesPerLine, BinaryOutputStream bos) throws java.io.IOException, ImageWriteException- Throws:
java.io.IOExceptionImageWriteException
-
-