Package zombie.core.textures
Class PNGDecoder
java.lang.Object
zombie.core.textures.PNGDecoder
public final class PNGDecoder
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPNGDecoder.Format -
Field Summary
Fields Modifier and Type Field Description booleanbDoMaskBooleanGridmaskintmaskIDlongreadTotal -
Constructor Summary
Constructors Constructor Description PNGDecoder(java.io.InputStream inputStream, boolean boolean1) -
Method Summary
Modifier and Type Method Description PNGDecoder.FormatdecideTextureFormat(PNGDecoder.Format format)voiddecode(java.nio.ByteBuffer byteBuffer, int int1, PNGDecoder.Format format)voiddecodeFlipped(java.nio.ByteBuffer byteBuffer, int int1, PNGDecoder.Format format)intgetHeight()intgetWidth()booleanhasAlpha()booleanhasAlphaChannel()booleanisRGB()voidoverwriteTRNS(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
-
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
-