public class mxPngImageEncoder extends Object
Modifier and Type | Field and Description |
---|---|
protected OutputStream |
output
The OutputStream associcted with this ImageEncoder.
|
Constructor and Description |
---|
mxPngImageEncoder(OutputStream output,
mxPngEncodeParam param) |
Modifier and Type | Method and Description |
---|---|
void |
encode(RenderedImage im)
This method encodes a
RenderedImage into PNG. |
OutputStream |
getOutputStream()
Returns the OutputStream associated with this ImageEncoder.
|
mxPngEncodeParam |
getParam() |
void |
setParam(mxPngEncodeParam param) |
protected OutputStream output
public mxPngImageEncoder(OutputStream output, mxPngEncodeParam param)
public mxPngEncodeParam getParam()
public void setParam(mxPngEncodeParam param)
public OutputStream getOutputStream()
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.IOException
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.