Package org.cesilko.rachota.gui
Class PNGImageWriter
java.lang.Object
org.cesilko.rachota.gui.PNGImageWriter
Encoder for writing BufferedImage as true color PNG
image with maximum compression.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(BufferedImage image, OutputStream outputStream) Writes given buffered image to given output stream.
-
Constructor Details
-
PNGImageWriter
public PNGImageWriter()
-
-
Method Details
-
write
Writes given buffered image to given output stream.- Parameters:
image
- Buffered image to be written.outputStream
- Output stream representing file where image should be saved.- Throws:
IOException
- Exception thrown when any I/O problem occurs.
-