Resize
in package
implements
FilterInterface
A resize filter.
Table of Contents
Interfaces
- FilterInterface
- Interface for imagine filters.
Properties
- $filter : string
- $size : BoxInterface
Methods
- __construct() : mixed
- Constructs Resize filter with given width and height.
- apply() : ImageInterface
- Applies scheduled transformation to an ImageInterface instance.
Properties
$filter
private
string
$filter
$size
private
BoxInterface
$size
Methods
__construct()
Constructs Resize filter with given width and height.
public
__construct(BoxInterface $size[, string $filter = ImageInterface::FILTER_UNDEFINED ]) : mixed
Parameters
- $size : BoxInterface
- $filter : string = ImageInterface::FILTER_UNDEFINED
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