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 56
__construct(Image $image, PaletteInterface $palette, Gmagick $resource, int $initialOffset = 0)
at line 69
merge()
Merge layers into the original objects.
at line 86
$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 96
$this
animate(string $format, int $delay, int $loops)
Animates layers.
at line 133
current()
{@inheritdoc}
at line 166
key()
{@inheritdoc}
at line 176
next()
{@inheritdoc}
at line 186
rewind()
{@inheritdoc}
at line 196
valid()
{@inheritdoc}
at line 206
count()
{@inheritdoc}
at line 220
offsetExists($offset)
{@inheritdoc}
at line 230
offsetGet($offset)
{@inheritdoc}
at line 240
offsetSet($offset, $image)
{@inheritdoc}
at line 293
offsetUnset($offset)
{@inheritdoc}