class ClippingPath extends BasePageAction

Defines the clipping path to use when trimming pixels.

Methods

byIndex(int $index)

Creates and instance using the index.

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

Creates an instance using the name.

__construct(string $clippingPath, FlagQualifier $method = null)

ClippingPath constructor.

evenOdd()

Trims pixels according to a clipping path included in the original image using an evenodd clipping rule.

Details

PageIndexTrait byIndex(int $index)

Creates and instance using the index.

Parameters

Name Type Description
$index int The index.

Return Value

PageIndexTrait

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

__construct(string $clippingPath, FlagQualifier $method = null)

ClippingPath constructor.

Parameters

Name Type Description
$clippingPath string The clipping path name.
$method FlagQualifier The clipping method. Can be Flag::clip() or Flag::clipEvenOdd().

See also

Flag::clip
Flag::clipEvenOdd

ClippingPath evenOdd()

Trims pixels according to a clipping path included in the original image using an evenodd clipping rule.

Return Value

ClippingPath