TmxImage

format.tmx.TmxImage (Class)

As of the current version of Tiled Qt, each tileset has a single image associated with it, which is cut into smaller tiles based on the attributes defined on the tileset element. Later versions may add support for adding multiple images to a single tileset, as is possible in Tiled Java.

Instance Members

format: String

Used for embedded images, in combination with a data child element. Valid values are file extensions like png, gif, jpg, bmp, etc. (since 0.9.0)


Used by some versions of Tiled Java. Deprecated and unsupported by Tiled Qt.


source: String

The reference to the tileset image file (Tiled supports most common image formats).


transparent: Null<Int>

Defines a specific color that is treated as transparent (example value: "#FF00FF" for magenta). Up until Tiled 0.10 (upd: 0.12), this value is written out without a # but this is planned to change.


width: Null<Int>

The image width in pixels (optional, used for tile index correction when the image changes)


height: Null<Int>

The image height in pixels (optional)


data: TmxData

Since 0.9


new(format: Null<String>, id: Null<String>, source: String, transparent: Null<Int>, width: Null<Int>, height: Null<Int>, data: Null<TmxData>): Void
Name Type Description
format Null<String> Used for embedded images, in combination with a data child element. Valid values are file extensions like png, gif, jpg, bmp, etc. (since 0.9.0)
id Null<String> Used by some versions of Tiled Java. Deprecated and unsupported by Tiled Qt.
source String The reference to the tileset image file (Tiled supports most common image formats).
transparent Null<Int> * Defines a specific color that is treated as transparent (example value: "#FF00FF" for magenta). Up until Tiled 0.10 (upd: 0.12), this value is written out without a # but this is planned to change.
width Null<Int> The image width in pixels (optional, used for tile index correction when the image changes)
height Null<Int> The image height in pixels (optional)
data Null<TmxData> Since 0.9

Metadata

Name Parameters
:hxGen -
:structInit -