org.apache.batik.ext.awt.image.codec.png
Class PNGImageWriter

java.lang.Object
  extended by org.apache.batik.ext.awt.image.codec.png.PNGImageWriter
All Implemented Interfaces:
ImageWriter

public class PNGImageWriter
extends Object
implements ImageWriter

ImageWriter implementation that uses Batik's PNG codec to write PNG files.


Constructor Summary
PNGImageWriter()
           
 
Method Summary
 String getMIMEType()
           
 void writeImage(RenderedImage image, OutputStream out)
           
 void writeImage(RenderedImage image, OutputStream out, ImageWriterParams params)
           
 
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

writeImage

public void writeImage(RenderedImage image,
                       OutputStream out)
                throws IOException
Specified by:
writeImage in interface ImageWriter
Throws:
IOException
See Also:
ImageWriter.writeImage(java.awt.image.RenderedImage, java.io.OutputStream)

writeImage

public void writeImage(RenderedImage image,
                       OutputStream out,
                       ImageWriterParams params)
                throws IOException
Specified by:
writeImage in interface ImageWriter
Throws:
IOException
See Also:
ImageWriter.writeImage(java.awt.image.RenderedImage, java.io.OutputStream, org.apache.batik.ext.awt.image.spi.ImageWriterParams)

getMIMEType

public String getMIMEType()
Specified by:
getMIMEType in interface ImageWriter
See Also:
ImageWriter.getMIMEType()


Copyright © 2008 Apache Software Foundation. All Rights Reserved.