LayersInterface
interface LayersInterface implements Iterator, Countable, ArrayAccess
The layers interface.
Methods
merge()
Merge layers into the original objects.
$this
animate(string $format, int $delay, int $loops)
Animates layers.
$this
coalesce()
Coalesce layers. Each layer in the sequence is the same size as the first and composited with the next layer in the sequence.
$this
$this
$this
remove(int $offset)
Removes the image at offset.
get(int $offset)
Returns the image at offset.
bool
has(int $offset)
Returns true if a layer at offset is preset.
Details
at line 24
merge()
Merge layers into the original objects.
at line 38
$this
animate(string $format, int $delay, int $loops)
Animates layers.
at line 48
$this
coalesce()
Coalesce layers. Each layer in the sequence is the same size as the first and composited with the next layer in the sequence.
at line 59
$this
add(ImageInterface $image)
Adds an image at the end of the layers stack.
at line 73
$this
set(int $offset, ImageInterface $image)
Set an image at offset.
at line 85
$this
remove(int $offset)
Removes the image at offset.
at line 97
ImageInterface
get(int $offset)
Returns the image at offset.
at line 106
bool
has(int $offset)
Returns true if a layer at offset is preset.