class PsdLayer extends BasePageAction

Represents a layer in a Photoshop document.

Learn more: Deliver selected layers of a PSD image

Methods

byName(string $name, int $index = null)

Creates an instance using the name.

byNames(string ...$names)

Creates a new instance using provided names.

byIndex(int $index)

Creates and instance using the index.

byRange(int|string $start, int|string $end = null)

Gets pages using the specified range.

Details

PageNameTrait byName(string $name, int $index = null)

Creates an instance using the name.

Parameters

Name Type Description
$name string The name
$index int The optional index.

Return Value

PageNameTrait

PageNamesTrait byNames(string ...$names)

Creates a new instance using provided names.

Parameters

Name Type Description
...$names string The names.

Return Value

PageNamesTrait

PageIndexTrait byIndex(int $index)

Creates and instance using the index.

Parameters

Name Type Description
$index int The index.

Return Value

PageIndexTrait

PageRangeTrait byRange(int|string $start, int|string $end = null)

Gets pages using the specified range.

Parameters

Name Type Description
$start int|string The start of the range.
$end int|string The end of the range.

Return Value

PageRangeTrait