Class PixelMap
Inheritance
java.lang.Object
PixelMap
Syntax
public class PixelMap implements AssetI
Constructors
./res/textures/ is automatically prepended.
Declaration
public PixelMap(ByteBuffer image, ImageMetaData md)
Parameters
Methods
decAndGetRef()
Declaration
public int decAndGetRef()
Returns
Overrides
decRef()
Decrements the asset's reference count by one.
Declaration
Overrides
dispose()
Declaration
Overrides
Declaration
public ImageMetaData getImageMetaData()
Returns
getPixel(int x, int y)
Declaration
public Color getPixel(int x, int y)
Parameters
Type |
Name |
Description |
int |
x |
|
int |
y |
|
Returns
getPixelsInByteBuffer()
Declaration
public ByteBuffer getPixelsInByteBuffer()
Returns
Type |
Description |
ByteBuffer |
|
getRefs()
Returns the integer representation of the references.
Declaration
Returns
Type |
Description |
int |
The count of refrences.
|
Overrides
incAndGetRef()
Declaration
public int incAndGetRef()
Returns
Overrides
incRef()
Increments the asset's reference count by one.
Declaration
Overrides
setData(ByteBuffer data)
Declaration
public void setData(ByteBuffer data)
Parameters
Type |
Name |
Description |
ByteBuffer |
data |
|
setPixel(int x, int y, Color c)
Declaration
public void setPixel(int x, int y, Color c)
Parameters
Type |
Name |
Description |
int |
x |
|
int |
y |
|
Color |
c |
|