Class mxPngImageEncoder

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

public class mxPngImageEncoder extends Object
An ImageEncoder for the PNG file format.
Since:
EA4
Version:
$Id: mxPngImageEncoder.java,v 1.1 2012/11/15 13:26:39 gaudenz Exp $
  • Field Details

    • log

      private static final Logger log
    • PNG_COLOR_GRAY

      private static final int PNG_COLOR_GRAY
      See Also:
    • PNG_COLOR_RGB

      private static final int PNG_COLOR_RGB
      See Also:
    • PNG_COLOR_PALETTE

      private static final int PNG_COLOR_PALETTE
      See Also:
    • PNG_COLOR_GRAY_ALPHA

      private static final int PNG_COLOR_GRAY_ALPHA
      See Also:
    • PNG_COLOR_RGB_ALPHA

      private static final int PNG_COLOR_RGB_ALPHA
      See Also:
    • magic

      private static final byte[] magic
    • param

      private mxPngEncodeParam param
    • image

      private RenderedImage image
    • width

      private int width
    • height

      private int height
    • bitDepth

      private int bitDepth
    • bitShift

      private int bitShift
    • numBands

      private int numBands
    • colorType

      private int colorType
    • bpp

      private int bpp
    • skipAlpha

      private boolean skipAlpha
    • compressGray

      private boolean compressGray
    • interlace

      private boolean interlace
    • redPalette

      private byte[] redPalette
    • greenPalette

      private byte[] greenPalette
    • bluePalette

      private byte[] bluePalette
    • alphaPalette

      private byte[] alphaPalette
    • dataOutput

      private DataOutputStream dataOutput
    • output

      protected OutputStream output
      The OutputStream associcted with this ImageEncoder.
    • prevRow

      private byte[] prevRow
    • currRow

      private byte[] currRow
    • filteredRows

      private byte[][] filteredRows
    • srgbChroma

      private static final float[] srgbChroma
  • Constructor Details

  • Method Details