if (bufferedImage == null) {
throw new IllegalArgumentException("Null 'image' argument.");
}
PngEncoder encoder = new PngEncoder(bufferedImage, this.encodingAlpha,
0, this.quality);
return encoder.pngEncode();
}
/**
* Encodes an image in PNG format and writes it to an
* <code>OutputStream</code>.