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