TmxImage
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)
id: 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).
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.
The image width in pixels (optional, used for tile index correction when the image changes)
The image height in pixels (optional)
data: TmxData
Since 0.9
new(?format: String, ?id: String, source: String, ?transparent: Int, ?width: Int, ?height: Int, ?data: TmxData): Void
Name | Type | Default | Description |
---|---|---|---|
format |
String | (optional) | 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 |
String | (optional) | 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 |
Int | (optional) | * 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 |
Int | (optional) | The image width in pixels (optional, used for tile index correction when the image changes) |
height |
Int | (optional) | The image height in pixels (optional) |
data |
TmxData | (optional) | Since 0.9 |
Metadata
Name | Parameters |
---|---|
:structInit |
- |