class CutOut extends SourceBasedEffectAction

Trims pixels according to the transparency levels of a specified overlay image.

Wherever an overlay image is transparent, the original is shown, and wherever an overlay is opaque, the resulting image is transparent.

Learn more: Custom shapes cut out

Methods

__construct(string|Media $source)

CutOut constructor.

Details

__construct(string|Media $source)

CutOut constructor.

Parameters

Name Type Description
$source string|Media The public ID of the source.