it.geosolutions.imageio.plugins.png
Class PNGWriter
java.lang.Object
it.geosolutions.imageio.plugins.png.PNGWriter
public class PNGWriter
- extends Object
Encodes the image in PNG using the PNGJ library
- Author:
- Andrea Aime - GeoSolutions
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PNGWriter
public PNGWriter()
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.