Class PNGDecoder

java.lang.Object
zombie.core.textures.PNGDecoder

public class PNGDecoder
extends java.lang.Object
  • Field Details

    • maskID

      public int maskID
    • mask

      public boolean[] mask
    • bDoMask

      public boolean bDoMask
    • readTotal

      public long readTotal
  • Constructor Details

    • PNGDecoder

      public PNGDecoder​(java.io.InputStream inputStream, boolean boolean1) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • getHeight

      public int getHeight()
    • getWidth

      public int getWidth()
    • hasAlphaChannel

      public boolean hasAlphaChannel()
    • hasAlpha

      public boolean hasAlpha()
    • isRGB

      public boolean isRGB()
    • overwriteTRNS

      public void overwriteTRNS​(byte byte1, byte byte2, byte byte3)
    • decideTextureFormat

      public PNGDecoder.Format decideTextureFormat​(PNGDecoder.Format format)
    • decode

      public void decode​(java.nio.ByteBuffer byteBuffer, int int1, PNGDecoder.Format format) throws java.io.IOException
      Throws:
      java.io.IOException
    • decodeFlipped

      public void decodeFlipped​(java.nio.ByteBuffer byteBuffer, int int1, PNGDecoder.Format format) throws java.io.IOException
      Throws:
      java.io.IOException