public class TiledImage extends 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.
|
String |
getSource()
Returns the path to this image's file.
|
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 String getSource()
public final Color getTransColor()
public final int getWidth()
public final int getHeight()
Copyright © 2020. All rights reserved.