The name of the image collection in the map data.
The first image index this image collection contains.
Optionalwidth: numberWidth of widest image (in pixels). Default 32.
Optionalheight: numberHeight of tallest image (in pixels). Default 32.
Optionalmargin: numberThe margin around all images in the collection (in pixels). Default 0.
Optionalspacing: numberThe spacing between each image in the collection (in pixels). Default 0.
Optionalproperties: objectCustom Image Collection properties. Default {}.
The Tiled firstgid value. This is the starting index of the first image index this Image Collection contains.
ReadonlyimageThe height of the tallest image (in pixels).
ReadonlyimageThe margin around the images in the collection (in pixels).
Use setSpacing to change.
ReadonlyimagesThe cached images that are a part of this collection.
ReadonlyimageThe spacing between each image in the collection (in pixels).
Use setSpacing to change.
ReadonlyimageThe width of the widest image (in pixels).
The name of the Image Collection.
Image Collection-specific properties that are typically defined in the Tiled editor.
ReadonlytotalThe total number of images in the image collection.
Add an image to this Image Collection.
The gid of the image in the Image Collection.
The the key of the image in the Image Collection and in the cache.
The width of the image in the Image Collection.
The height of the image in the Image Collection.
Returns true if and only if this image collection contains the given image index.
The image index to search for.
An Image Collection is a special Tile Set containing multiple images, with no slicing into each image.
Image Collections are normally created automatically when Tiled data is loaded.