|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.yaina.trackrenderer.TileRaster
public class TileRaster
Implements a raster image for tiles. Points are stored in a byte array of indexed coulors
Constructor Summary | |
---|---|
TileRaster(int dimensionX,
int dimensionY,
int tileX,
int tileY)
Create a new image raster |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
getImage()
Convert the raster to an ARGB image, suitable to be processed by AWT |
byte |
getPoint(int x,
int y)
Read a point from the image map |
int |
getTileX()
Get the horizontal tile number |
int |
getTileY()
Get the vertical tile number |
void |
setPoint(int x,
int y,
byte value)
Set a point on the image map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TileRaster(int dimensionX, int dimensionY, int tileX, int tileY)
dimensionX
- horizontal size of the pixmapdimensionY
- vertical size of the pixmaptileX
- number of the X tile (only for stats)tileY
- number of the Y tile (only for stats)Method Detail |
---|
public void setPoint(int x, int y, byte value)
x
- x coordinatey
- y coordinatevalue
- colourpublic byte getPoint(int x, int y)
x
- x coordinatey
- y coordinate
public int getTileX()
public int getTileY()
public java.awt.image.BufferedImage getImage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |