Class mxPngImageEncoder


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

      Fields 
      Modifier and Type Field Description
      protected java.io.OutputStream output
      The OutputStream associcted with this ImageEncoder.
    • Field Detail

      • output

        protected java.io.OutputStream output
        The OutputStream associcted with this ImageEncoder.
    • 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