Package zombie.core.textures
Class PNGDecoder
java.lang.Object
zombie.core.textures.PNGDecoder
public class PNGDecoder
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PNGDecoder.Format
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PNGDecoder(java.io.InputStream inputStream, boolean boolean1)
-
Method Summary
Modifier and Type Method Description PNGDecoder.Format
decideTextureFormat(PNGDecoder.Format format)
void
decode(java.nio.ByteBuffer byteBuffer, int int1, PNGDecoder.Format format)
void
decodeFlipped(java.nio.ByteBuffer byteBuffer, int int1, PNGDecoder.Format format)
int
getHeight()
int
getWidth()
boolean
hasAlpha()
boolean
hasAlphaChannel()
boolean
isRGB()
void
overwriteTRNS(byte byte1, byte byte2, byte byte3)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
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
-