it.geosolutions.imageio.plugins.png
Class PNGWriter

java.lang.Object
  extended by it.geosolutions.imageio.plugins.png.PNGWriter

public class PNGWriter
extends Object

Encodes the image in PNG using the PNGJ library

Author:
Andrea Aime - GeoSolutions

Constructor Summary
PNGWriter()
           
 
Method Summary
 boolean isScanlineSupported(RenderedImage image)
          Quick method used for checking if the image can be optimized with the selected scanline extractors or if the image must be rescaled to byte before writing the image.
 RenderedImage writePNG(RenderedImage image, OutputStream outStream, float quality, ar.com.hjg.pngj.FilterType filterType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PNGWriter

public PNGWriter()
Method Detail

writePNG

public RenderedImage writePNG(RenderedImage image,
                              OutputStream outStream,
                              float quality,
                              ar.com.hjg.pngj.FilterType filterType)
                       throws Exception
Throws:
Exception

isScanlineSupported

public boolean isScanlineSupported(RenderedImage image)
Quick method used for checking if the image can be optimized with the selected scanline extractors or if the image must be rescaled to byte before writing the image.

Parameters:
image -
Returns:


Copyright © 2006–2014 GeoSolutions. All rights reserved.