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 OutputStreamThe OutputStream associcted with this ImageEncoder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(RenderedImage im) This method encodes aRenderedImageinto PNG.Returns the OutputStream associated with this ImageEncoder.getParam()voidsetParam(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 aRenderedImageinto 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
-