public class TiledImage
extends java.lang.Object
A TiledImage represents the image associated with a single-image tileset, a tile in an image collection tileset, or an image layer. It corresponds to an <image> tag in a Tiled XML file.
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Returns this image's height, or -1 if it was not specified.
|
java.lang.String |
getSource()
Returns the relative path (from the program's working directory) to this
image's file.
|
java.awt.Color |
getTransColor()
Returns the color that is treated as transparent in this image, or null
if none was specified.
|
int |
getWidth()
Returns this image's width, or -1 if it was not specified.
|
public final java.lang.String getSource()
public final java.awt.Color getTransColor()
public final int getWidth()
public final int getHeight()