public class PNGImageEncoder extends ImageEncoderImpl
output
Constructor and Description |
---|
PNGImageEncoder(java.io.OutputStream output,
PNGEncodeParam param) |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.awt.image.RenderedImage im)
This method encodes a
RenderedImage into PNG. |
encode, getOutputStream, getParam, setParam
public PNGImageEncoder(java.io.OutputStream output, PNGEncodeParam param)
public void encode(java.awt.image.RenderedImage im) throws java.io.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 ImageEncoder
encode
in class ImageEncoderImpl
java.io.IOException
Copyright © 2022 Apache Software Foundation. All Rights Reserved.