class Canvas implements FilterInterface

A canvas filter.

Methods

__construct(ImagineInterface $imagine, BoxInterface $size, PointInterface $placement = null, ColorInterface $background = null)

Constructs Canvas filter with given width and height and the placement of the current image inside the new canvas.

apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Details

at line 55
__construct(ImagineInterface $imagine, BoxInterface $size, PointInterface $placement = null, ColorInterface $background = null)

Constructs Canvas filter with given width and height and the placement of the current image inside the new canvas.

Parameters

ImagineInterface $imagine
BoxInterface $size
PointInterface $placement
ColorInterface $background

at line 68
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