LayersInterface
extends
Iterator, Countable, ArrayAccess
in
The layers interface.
Table of Contents
Methods
- add() : $this
- Adds an image at the end of the layers stack.
- animate() : $this
- Animates layers.
- coalesce() : $this
- Coalesce layers. Each layer in the sequence is the same size as the first and composited with the next layer in the sequence.
- get() : ImageInterface
- Returns the image at offset.
- has() : bool
- Returns true if a layer at offset is preset.
- merge() : mixed
- Merge layers into the original objects.
- remove() : $this
- Removes the image at offset.
- set() : $this
- Set an image at offset.
Methods
add()
Adds an image at the end of the layers stack.
public
add(ImageInterface $image) : $this
Parameters
- $image : ImageInterface
Tags
Return values
$thisanimate()
Animates layers.
public
animate(string $format, int $delay, int $loops) : $this
Parameters
- $format : string
-
The output output format
- $delay : int
-
The delay in milliseconds between two frames
- $loops : int
-
The number of loops, 0 means infinite
Tags
Return values
$thiscoalesce()
Coalesce layers. Each layer in the sequence is the same size as the first and composited with the next layer in the sequence.
public
coalesce() : $this
Tags
Return values
$thisget()
Returns the image at offset.
public
get(int $offset) : ImageInterface
Parameters
- $offset : int
Tags
Return values
ImageInterfacehas()
Returns true if a layer at offset is preset.
public
has(int $offset) : bool
Parameters
- $offset : int
Return values
boolmerge()
Merge layers into the original objects.
public
merge() : mixed
Tags
remove()
Removes the image at offset.
public
remove(int $offset) : $this
Parameters
- $offset : int
Tags
Return values
$thisset()
Set an image at offset.
public
set(int $offset, ImageInterface $image) : $this
Parameters
- $offset : int
- $image : ImageInterface