Class PcxWriter
java.lang.Object
org.apache.commons.imaging.formats.pcx.PcxWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private PixelDensity
private int
private final RleWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeImage
(BufferedImage src, OutputStream os) private void
writePixels
(BufferedImage src, int bitDepth, int planes, int bytesPerLine, SimplePalette palette, BinaryOutputStream bos) private void
writePixels32
(BufferedImage src, int bytesPerLine, BinaryOutputStream bos)
-
Field Details
-
encoding
private int encoding -
bitDepthWanted
private int bitDepthWanted -
planesWanted
private int planesWanted -
pixelDensity
-
rleWriter
-
-
Constructor Details
-
PcxWriter
PcxWriter(Map<String, Object> params) throws ImageWriteException- Throws:
ImageWriteException
-
-
Method Details
-
writeImage
- Throws:
ImageWriteException
IOException
-
writePixels
private void writePixels(BufferedImage src, int bitDepth, int planes, int bytesPerLine, SimplePalette palette, BinaryOutputStream bos) throws IOException, ImageWriteException - Throws:
IOException
ImageWriteException
-
writePixels32
private void writePixels32(BufferedImage src, int bytesPerLine, BinaryOutputStream bos) throws IOException, ImageWriteException - Throws:
IOException
ImageWriteException
-