public class StandaloneTiledImage extends java.lang.Object implements ITiledImage, IFileBasedTiledImage, IFamilyImageSeeker, IFamilyImageSeekerTiledImage
| Constructor and Description |
|---|
StandaloneTiledImage(java.awt.image.BufferedImage image) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
get single image height
|
java.awt.image.BufferedImage |
getImage() |
int |
getImageCount()
number of images
|
java.io.File |
getImagePath(int i)
file image path associated to its index
|
int |
getTileWidth()
get a single tile width
|
int |
getWidth()
get image width
|
java.awt.image.BufferedImage |
loadImage(int imageNumber)
load an individual image
|
java.awt.geom.Rectangle2D.Double |
subTileDimension(int index)
grab the tile extend
|
int[] |
subTiles(java.awt.geom.Rectangle2D.Double viewport)
return the tiles that intersect the viewport
|
public StandaloneTiledImage(java.awt.image.BufferedImage image)
public int getWidth()
ITiledImagegetWidth in interface ITiledImagepublic int getTileWidth()
ITiledImagegetTileWidth in interface ITiledImagepublic int getHeight()
ITiledImagegetHeight in interface ITiledImagepublic int getImageCount()
ITiledImagegetImageCount in interface IFamilyImageSeekergetImageCount in interface ITiledImagepublic java.io.File getImagePath(int i)
IFileBasedTiledImagegetImagePath in interface IFileBasedTiledImagepublic java.awt.image.BufferedImage getImage()
public java.awt.geom.Rectangle2D.Double subTileDimension(int index)
ITiledImagesubTileDimension in interface ITiledImagepublic int[] subTiles(java.awt.geom.Rectangle2D.Double viewport)
ITiledImagesubTiles in interface ITiledImagepublic java.awt.image.BufferedImage loadImage(int imageNumber)
throws java.lang.Exception
IFamilyImageSeekerloadImage in interface IFamilyImageSeekerjava.lang.Exception