RelativeResize
in package
implements
FilterInterface
The RelativeResize filter allows images to be resized relative to their existing dimensions.
Table of Contents
Interfaces
- FilterInterface
- Interface for imagine filters.
Properties
- $method : string
- $parameter : mixed
Methods
- __construct() : mixed
- Constructs a RelativeResize filter with the given method and argument.
- apply() : ImageInterface
- Applies scheduled transformation to an ImageInterface instance.
Properties
$method
private
string
$method
$parameter
private
mixed
$parameter
Methods
__construct()
Constructs a RelativeResize filter with the given method and argument.
public
__construct(string $method, mixed $parameter) : mixed
Parameters
- $method : string
-
BoxInterface method
- $parameter : mixed
-
Parameter for BoxInterface method
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