Layers
class Layers extends AbstractLayers
Methods
Get the class factory instance to be used.
No description
Merge layers into the original objects.
Coalesce layers. Each layer in the sequence is the same size as the first and composited with the next layer in the sequence.
Animates layers.
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
Details
in AbstractLayers at line 30
$this
add(ImageInterface $image)
Adds an image at the end of the layers stack.
in AbstractLayers at line 42
$this
set(int $offset, ImageInterface $image)
Set an image at offset.
in AbstractLayers at line 54
$this
remove(int $offset)
Removes the image at offset.
in AbstractLayers at line 66
ImageInterface
get(int $offset)
Returns the image at offset.
in AbstractLayers at line 76
bool
has(int $offset)
Returns true if a layer at offset is preset.
in AbstractLayers at line 86
$this
setClassFactory(ClassFactoryInterface $classFactory)
Set the class factory instance to be used.
in AbstractLayers at line 98
ClassFactoryInterface
getClassFactory()
Get the class factory instance to be used.
at line 51
__construct(Image $image, PaletteInterface $palette, resource|GdImage $resource, int $initialOffset = 0)
at line 68
merge()
Merge layers into the original objects.
at line 77
$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 87
$this
animate(string $format, int $delay, int $loops)
Animates layers.
at line 97
current()
{@inheritdoc}
at line 107
key()
{@inheritdoc}
at line 117
next()
{@inheritdoc}
at line 127
rewind()
{@inheritdoc}
at line 137
valid()
{@inheritdoc}
at line 147
count()
{@inheritdoc}
at line 157
offsetExists($offset)
{@inheritdoc}
at line 167
offsetGet($offset)
{@inheritdoc}
at line 181
offsetSet($offset, $value)
{@inheritdoc}
at line 191
offsetUnset($offset)
{@inheritdoc}