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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
public static WrappedBuffer data
- the data of image
mask
public boolean[] mask
id
public int id
ImageData
public ImageData(TextureID texture,
WrappedBuffer bb)
ImageData
public ImageData(java.awt.image.BufferedImage image)
ImageData
public ImageData(java.lang.String path)
ImageData
public ImageData(int width,
int height)
- creates a new empty imageData
- Parameters:
width
- the width of imageDataheight
- the height of imageDatauseAlpha
- indicates the internal format of image: RGBA or RGB
ImageData
public ImageData(java.io.BufferedInputStream b,
boolean bDoMask,
Texture.PZFileformat format)
ImageData
public ImageData(java.io.BufferedInputStream b,
boolean bDoMask)
Load
public void Load(java.awt.image.BufferedImage image)
getData
public WrappedBuffer getData()
makeTransp
public void makeTransp(byte red,
byte green,
byte blue)
- make the image transparent
- Parameters:
red
- the red value (0-255)green
- the green value (0-255)blue
- the blue value (0-255)
makeTransp
public void makeTransp(byte red,
byte green,
byte blue,
byte alpha)
- make the image transparent
- Parameters:
red
- the red value (0-255)green
- the green value (0-255)blue
- the blue value (0-255)alpha
- the alpha value that will be setted (0-255)
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()