ImageEncoderpublic class PNGImageEncoder extends ImageEncoderImpl
output| Constructor | Description |
|---|---|
PNGImageEncoder(OutputStream output,
PNGEncodeParam param) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
encode(RenderedImage im) |
This method encodes a
RenderedImage into PNG. |
encode, getOutputStream, getParam, setParampublic PNGImageEncoder(OutputStream output, PNGEncodeParam param)
public void encode(RenderedImage im) throws IOException
RenderedImage into PNG.
The stream into which the PNG is dumped is not closed at
the end of the operation, this should be done if needed
by the caller of this method.encode in interface ImageEncoderencode in class ImageEncoderImplIOExceptionCopyright © 2018 Apache Software Foundation. All rights reserved.