class Paste implements FilterInterface

A paste filter.

Methods

__construct(ImageInterface $image, PointInterface $start, int $alpha = 100)

Constructs a Paste filter with given ImageInterface to paste and x, y coordinates of target position.

apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Details

at line 49
__construct(ImageInterface $image, PointInterface $start, int $alpha = 100)

Constructs a Paste filter with given ImageInterface to paste and x, y coordinates of target position.

Parameters

ImageInterface $image
PointInterface $start
int $alpha how to paste the image, from 0 (fully transparent) to 100 (fully opaque)

at line 65
ImageInterface apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Parameters

ImageInterface $image

Return Value

ImageInterface returns the processed ImageInterface instance

See also

FilterInterface::apply