Layers
class Layers extends AbstractLayers
Methods
Get the class factory instance to be used.
No description
Merge layers into the original objects.
Animates layers.
Coalesce layers. Each layer in the sequence is the same size as the first and composited with the next layer in the sequence.
{@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 49
__construct(Image $image, PaletteInterface $palette, Imagick $resource, $initialOffset = 0)
at line 62
merge()
Merge layers into the original objects.
at line 79
$this
animate(string $format, int $delay, int $loops)
Animates layers.
at line 118
$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 144
current()
{@inheritdoc}
at line 177
key()
{@inheritdoc}
at line 187
next()
{@inheritdoc}
at line 197
rewind()
{@inheritdoc}
at line 207
valid()
{@inheritdoc}
at line 217
count()
{@inheritdoc}
at line 231
offsetExists($offset)
{@inheritdoc}
at line 241
offsetGet($offset)
{@inheritdoc}
at line 251
offsetSet($offset, $image)
{@inheritdoc}
at line 293
offsetUnset($offset)
{@inheritdoc}