Package zombie.core.textures
Class ImageData
java.lang.Object
zombie.core.textures.ImageData
- All Implemented Interfaces:
java.io.Serializable
public final class ImageData
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description MipMapLevel
data
int
id
BooleanGrid
mask
static int
MIP_LEVEL_IDX_OFFSET
-
Constructor Summary
Constructors Constructor Description ImageData(int int1, int int2)
ImageData(int int1, int int2, WrappedBuffer wrappedBuffer)
ImageData(java.io.BufferedInputStream bufferedInputStream, boolean boolean1, Texture.PZFileformat pZFileformat)
ImageData(java.io.InputStream inputStream, boolean boolean1)
ImageData(java.lang.String string)
ImageData(TextureID textureID, WrappedBuffer wrappedBuffer)
-
Method Summary
Modifier and Type Method Description static int
calculateNumMips(int int1, int int2)
static ImageData
createSteamAvatar(long long1)
void
dispose()
MipMapLevel
getData()
int
getHeight()
int
getHeightHW()
int
getMipMapCount()
MipMapLevel
getMipMapData(int int1)
static int
getNextMipDimension(int int1)
static int[]
getPixelClamped(java.nio.ByteBuffer byteBuffer, int int1, int int2, int int3, int int4, int[] intArray)
static int
getPixelDiscard(java.nio.ByteBuffer byteBuffer, int int1, int int2, int int3, int int4, int[] intArray)
int
getWidth()
int
getWidthHW()
void
initMipMaps()
boolean
isSolid()
void
makeTransp(byte byte1, byte byte2, byte byte3)
void
makeTransp(byte byte1, byte byte2, byte byte3, byte byte4)
void
setData(java.awt.image.BufferedImage bufferedImage)
void
setData(java.awt.image.Raster raster)
static void
setPixel(java.nio.ByteBuffer byteBuffer, int int1, int int2, int int3, int int4, int[] intArray)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
data
-
mask
-
id
public int id -
MIP_LEVEL_IDX_OFFSET
public static final int MIP_LEVEL_IDX_OFFSET- See Also:
- Constant Field Values
-
-
Constructor Details
-
ImageData
-
ImageData
public ImageData(java.lang.String string) throws java.lang.Exception- Throws:
java.lang.Exception
-
ImageData
public ImageData(int int1, int int2) -
ImageData
-
ImageData
public ImageData(java.io.BufferedInputStream bufferedInputStream, boolean boolean1, Texture.PZFileformat pZFileformat) -
ImageData
public ImageData(java.io.InputStream inputStream, boolean boolean1) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Details
-
createSteamAvatar
-
getData
-
makeTransp
public void makeTransp(byte byte1, byte byte2, byte byte3) -
makeTransp
public void makeTransp(byte byte1, byte byte2, byte byte3, byte byte4) -
setData
public void setData(java.awt.image.BufferedImage bufferedImage) -
setData
public void setData(java.awt.image.Raster raster) -
getHeight
public int getHeight() -
getHeightHW
public int getHeightHW() -
isSolid
public boolean isSolid() -
getWidth
public int getWidth() -
getWidthHW
public int getWidthHW() -
getMipMapCount
public int getMipMapCount() -
getMipMapData
-
initMipMaps
public void initMipMaps() -
dispose
public void dispose() -
calculateNumMips
public static int calculateNumMips(int int1, int int2) -
getPixelDiscard
public static int getPixelDiscard(java.nio.ByteBuffer byteBuffer, int int1, int int2, int int3, int int4, int[] intArray) -
getPixelClamped
public static int[] getPixelClamped(java.nio.ByteBuffer byteBuffer, int int1, int int2, int int3, int int4, int[] intArray) -
setPixel
public static void setPixel(java.nio.ByteBuffer byteBuffer, int int1, int int2, int int3, int int4, int[] intArray) -
getNextMipDimension
public static int getNextMipDimension(int int1)
-