Rotate
in package
implements
FilterInterface
A rotate filter.
Table of Contents
Interfaces
- FilterInterface
- Interface for imagine filters.
Properties
- $angle : int
- $background : ColorInterface
Methods
- __construct() : mixed
- Constructs Rotate filter with given angle and background color.
- apply() : ImageInterface
- Applies scheduled transformation to an ImageInterface instance.
Properties
$angle
private
int
$angle
$background
private
ColorInterface
$background
Methods
__construct()
Constructs Rotate filter with given angle and background color.
public
__construct(int $angle[, ColorInterface $background = null ]) : mixed
Parameters
- $angle : int
- $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