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 input, boolean bDoMask) 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 r, byte g, byte b)
    • decideTextureFormat

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

      public void decode​(java.nio.ByteBuffer buffer, int stride, PNGDecoder.Format fmt) throws java.io.IOException
      Throws:
      java.io.IOException
    • decodeFlipped

      public void decodeFlipped​(java.nio.ByteBuffer buffer, int stride, PNGDecoder.Format fmt) throws java.io.IOException
      Throws:
      java.io.IOException