*/
public void formatImageOutputStream(String format, BufferedImage image,
OutputStream outStream) throws WmsException, IOException
{
PngEncoderB png = new PngEncoderB( image, PngEncoder.ENCODE_ALPHA, 0, 1 ); // filter (0), and compression (1)
byte[] pngbytes = png.pngEncode();
outStream.write( pngbytes );
outStream.flush();
}
}