public class TiledImage extends ImagePack
currentImage, imageList
imageCache
Constructor and Description |
---|
TiledImage(java.awt.image.BufferedImage image,
int boxWidth,
int boxHeight)
Create a new image.
|
TiledImage(java.lang.String path,
int boxWidth,
int boxHeight)
Create a new image.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Dimension |
getDimension()
Dimension of the image.
|
addImage, cycle, draw, getImage, getImage, iterator, size
loadImage, loadImage, toBufferedImage
public TiledImage(java.awt.image.BufferedImage image, int boxWidth, int boxHeight)
image
- the image with the tilesboxWidth
- width of one tileboxHeight
- height of one tilepublic TiledImage(java.lang.String path, int boxWidth, int boxHeight)
path
- path to the imageboxWidth
- width of one tileboxHeight
- height of one tilepublic java.awt.Dimension getDimension()
ImageBase
getDimension
in class ImagePack