Canvas
in package
implements
FilterInterface
A canvas filter.
Table of Contents
Interfaces
- FilterInterface
- Interface for imagine filters.
Properties
- $background : ColorInterface
- $imagine : ImagineInterface
- $placement : PointInterface
- $size : BoxInterface
Methods
- __construct() : mixed
- Constructs Canvas filter with given width and height and the placement of the current image inside the new canvas.
- apply() : ImageInterface
- Applies scheduled transformation to an ImageInterface instance.
Properties
$background
private
ColorInterface
$background
$imagine
private
ImagineInterface
$imagine
$placement
private
PointInterface
$placement
$size
private
BoxInterface
$size
Methods
__construct()
Constructs Canvas filter with given width and height and the placement of the current image inside the new canvas.
public
__construct(ImagineInterface $imagine, BoxInterface $size[, PointInterface $placement = null ][, ColorInterface $background = null ]) : mixed
Parameters
- $imagine : ImagineInterface
- $size : BoxInterface
- $placement : PointInterface = null
- $background : ColorInterface = null
apply()
Applies scheduled transformation to an ImageInterface instance.
public
apply(ImageInterface $image) : ImageInterface
Parameters
- $image : ImageInterface
Tags
Return values
ImageInterface —returns the processed ImageInterface instance