Package zombie.core.textures
Class ImageData
java.lang.Object
zombie.core.textures.ImageData
- All Implemented Interfaces:
java.io.Serializable
public class ImageData
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static int
BufferSize
static WrappedBuffer
data
int
id
boolean[]
mask
-
Constructor Summary
Constructors Constructor Description ImageData(int width, int height)
ImageData(java.awt.image.BufferedImage image)
ImageData(java.io.BufferedInputStream b, boolean bDoMask)
ImageData(java.io.BufferedInputStream b, boolean bDoMask, Texture.PZFileformat format)
ImageData(java.lang.String path)
ImageData(TextureID texture, WrappedBuffer bb)
-
Method Summary
Modifier and Type Method Description static ImageData
createSteamAvatar(long steamID)
WrappedBuffer
getData()
int
getHeight()
int
getHeightHW()
int
getWidth()
int
getWidthHW()
boolean
isSolid()
void
Load(java.awt.image.BufferedImage image)
void
makeTransp(byte red, byte green, byte blue)
void
makeTransp(byte red, byte green, byte blue, byte alpha)
void
setData(java.awt.image.BufferedImage image)
void
setData(java.awt.image.Raster rasterData)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
data
-
mask
public boolean[] mask -
BufferSize
public static int BufferSize -
id
public int id
-
-
Constructor Details
-
ImageData
-
ImageData
public ImageData(java.awt.image.BufferedImage image) -
ImageData
public ImageData(java.lang.String path) -
ImageData
public ImageData(int width, int height) -
ImageData
-
ImageData
public ImageData(java.io.BufferedInputStream b, boolean bDoMask)
-
-
Method Details
-
Load
public void Load(java.awt.image.BufferedImage image) -
createSteamAvatar
-
getData
-
makeTransp
public void makeTransp(byte red, byte green, byte blue) -
makeTransp
public void makeTransp(byte red, byte green, byte blue, byte alpha) -
setData
public void setData(java.awt.image.BufferedImage image) -
setData
public void setData(java.awt.image.Raster rasterData) -
getHeight
public int getHeight() -
getHeightHW
public int getHeightHW() -
isSolid
public boolean isSolid() -
getWidth
public int getWidth() -
getWidthHW
public int getWidthHW()
-