org.cesilko.rachota.gui
Class PNGImageWriter

java.lang.Object
  extended by org.cesilko.rachota.gui.PNGImageWriter

public class PNGImageWriter
extends java.lang.Object

Encoder for writing BufferedImage as true color PNG image with maximum compression.


Constructor Summary
PNGImageWriter()
           
 
Method Summary
 void write(java.awt.image.BufferedImage image, java.io.OutputStream outputStream)
          Writes given buffered image to given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PNGImageWriter

public PNGImageWriter()
Method Detail

write

public void write(java.awt.image.BufferedImage image,
                  java.io.OutputStream outputStream)
           throws java.io.IOException
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:
java.io.IOException - Exception thrown when any I/O problem occurs.