public class TiledImage extends ImagePack
currentImage, imageListimageCache| 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, sizeloadImage, loadImage, toBufferedImagepublic 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()
ImageBasegetDimension in class ImagePack