Class PngEncoder

java.lang.Object
org.eclipse.swt.internal.image.PngEncoder

final class PngEncoder extends Object
  • Field Details

    • SIGNATURE

      static final byte[] SIGNATURE
    • TAG_IHDR

      static final byte[] TAG_IHDR
    • TAG_PLTE

      static final byte[] TAG_PLTE
    • TAG_TRNS

      static final byte[] TAG_TRNS
    • TAG_IDAT

      static final byte[] TAG_IDAT
    • TAG_IEND

      static final byte[] TAG_IEND
    • NO_COMPRESSION

      static final int NO_COMPRESSION
      See Also:
    • BEST_SPEED

      static final int BEST_SPEED
      See Also:
    • BEST_COMPRESSION

      static final int BEST_COMPRESSION
      See Also:
    • DEFAULT_COMPRESSION

      static final int DEFAULT_COMPRESSION
      See Also:
    • bytes

    • chunk

      PngChunk chunk
    • loader

      ImageLoader loader
    • data

      ImageData data
    • transparencyType

      int transparencyType
    • width

      int width
    • height

      int height
    • bitDepth

      int bitDepth
    • colorType

      int colorType
    • compressionMethod

      int compressionMethod
    • filterMethod

      int filterMethod
    • interlaceMethod

      int interlaceMethod
  • Constructor Details

  • Method Details

    • writeShort

      void writeShort(ByteArrayOutputStream baos, int theShort)
    • writeInt

      void writeInt(ByteArrayOutputStream baos, int theInt)
    • writeChunk

      void writeChunk(byte[] tag, byte[] buffer)
    • writeSignature

      void writeSignature()
    • writeHeader

      void writeHeader()
    • writePalette

      void writePalette()
    • writeTransparency

      void writeTransparency()
    • writeImageData

      void writeImageData() throws IOException
      Throws:
      IOException
    • writeEnd

      void writeEnd()
    • encode

      public void encode(LEDataOutputStream outputStream)