TiledImage class
Below is Tiled's documentation about how this structure is represented on XML files:
- format: Used for embedded images, in combination with a data child element. Valid values are file extensions like png, gif, jpg, bmp, etc.
- source: The reference to the tileset image file (Tiled supports most common image formats). Only used if the image is not embedded.
- trans: Defines a specific color that is treated as transparent (example value: “#FF00FF” for magenta). Including the “#” is optional and Tiled leaves it out for compatibility reasons. (optional)
- width: The image width in pixels (optional, used for tile index correction when the image changes)
- height: The image height in pixels (optional)
- Annotations
-
- @immutable
Constructors
- TiledImage({String? source, String? format, int? width, int? height, String? trans})
-
const
- TiledImage.parse(Parser parser)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Needed for getTiledImages in TileMap;
Images are equal if their source is equal.
override