Documentation of 'com.mxgraph.util.png.mxPngImageEncoder' Java class
mxPngImageEncoder
com.mxgraph.util.png

Class mxPngImageEncoder



  • public class mxPngImageEncoder
    extends java.lang.Object
    An ImageEncoder for the PNG file format.
    Since:
    EA4
    • Constructor Detail

      • mxPngImageEncoder

        public mxPngImageEncoder(java.io.OutputStream output,
                                 mxPngEncodeParam param)
    • Method Detail

      • getOutputStream

        public java.io.OutputStream getOutputStream()
        Returns the OutputStream associated with this ImageEncoder.
      • encode

        public void encode(java.awt.image.RenderedImage im)
                    throws java.io.IOException
        This method encodes a 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.
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.