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()
ITiledImage
getWidth
in interface ITiledImage
public int getTileWidth()
ITiledImage
getTileWidth
in interface ITiledImage
public int getHeight()
ITiledImage
getHeight
in interface ITiledImage
public int getImageCount()
ITiledImage
getImageCount
in interface IFamilyImageSeeker
getImageCount
in interface ITiledImage
public java.io.File getImagePath(int i)
IFileBasedTiledImage
getImagePath
in interface IFileBasedTiledImage
public java.awt.image.BufferedImage getImage()
public java.awt.geom.Rectangle2D.Double subTileDimension(int index)
ITiledImage
subTileDimension
in interface ITiledImage
public int[] subTiles(java.awt.geom.Rectangle2D.Double viewport)
ITiledImage
subTiles
in interface ITiledImage
public java.awt.image.BufferedImage loadImage(int imageNumber) throws java.lang.Exception
IFamilyImageSeeker
loadImage
in interface IFamilyImageSeeker
java.lang.Exception