Documentation

ImageLayer extends TileLayer implements PropertyBagHolder Uses PropertyBagTrait

Represents an image layer.

Tags
see
https://doc.mapeditor.org/en/stable/reference/tmx-map-format/#imagelayer

Documentation

Interfaces, Classes and Traits

PropertyBagHolder
Interface for all elements, which contains properties.

Table of Contents

$id  : int|null
Unique ID of the layer.
$image  : Image|null
An image object to draw.
$map  : Map|null
The map object, which holds this layer.
$name  : string|null
The name of the layer.
$offsetX  : float
Horizontal offset for this layer in pixels. Defaults to 0.
$offsetY  : float
Vertical offset for this layer in pixels. Defaults to 0.
$opacity  : float|null
The opacity of the layer as a value from 0 to 1.
$order  : int
Which order in the map should this tileLayer be rendered.
$propertyBag  : PropertyBag|null
$tintColor  : string|null
A color that is multiplied with any tiles drawn by this layer in #AARRGGBB or #RRGGBB format.
$visible  : bool
Whether the layer is shown (1) or hidden (0).
getId()  : int|null
getImage()  : Image|null
getMap()  : Map|null
getName()  : string|null
getOffsetX()  : float
getOffsetY()  : float
getOpacity()  : float|null
getOrder()  : int
getPropertyBag()  : PropertyBag|null
getTintColor()  : string|null
isVisible()  : bool
setId()  : TileLayer
setImage()  : ImageLayer
setMap()  : TileLayer
setName()  : TileLayer
setOffsetX()  : TileLayer
setOffsetY()  : TileLayer
setOpacity()  : TileLayer
setOrder()  : ImageLayer
setPropertyBag()  : self
setTintColor()  : TileLayer
setVisible()  : TileLayer

Properties

Methods

getId()

public getId() : int|null
Return values
int|null

getName()

public getName() : string|null
Return values
string|null

getOffsetX()

public getOffsetX() : float
Return values
float

getOffsetY()

public getOffsetY() : float
Return values
float

getOpacity()

public getOpacity() : float|null
Return values
float|null

getOrder()

public getOrder() : int
Return values
int

getTintColor()

public getTintColor() : string|null
Return values
string|null

isVisible()

public isVisible() : bool
Return values
bool

setTintColor()

public setTintColor(string|null $tintColor) : TileLayer
Parameters
$tintColor : string|null
Return values
TileLayer

Search results