Package com.mxgraph.util.png
Class mxPngImageEncoder
java.lang.Object
com.mxgraph.util.png.mxPngImageEncoder
An ImageEncoder for the PNG file format.
- Since:
- EA4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OutputStream
The OutputStream associcted with this ImageEncoder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(RenderedImage im) This method encodes aRenderedImage
into PNG.Returns the OutputStream associated with this ImageEncoder.getParam()
void
setParam
(mxPngEncodeParam param)
-
Field Details
-
output
The OutputStream associcted with this ImageEncoder.
-
-
Constructor Details
-
mxPngImageEncoder
-
-
Method Details
-
getParam
-
setParam
-
getOutputStream
Returns the OutputStream associated with this ImageEncoder. -
encode
This method encodes aRenderedImage
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.- Throws:
IOException
-