Class mxPngImageEncoder

java.lang.Object
com.mxgraph.util.png.mxPngImageEncoder

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

    • output

      protected OutputStream output
      The OutputStream associcted with this ImageEncoder.
  • Constructor Details

  • Method Details

    • getParam

      public mxPngEncodeParam getParam()
    • setParam

      public void setParam(mxPngEncodeParam param)
    • getOutputStream

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

      public void encode(RenderedImage im) throws 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:
      IOException