class Rotate implements FilterInterface

A rotate filter.

Methods

__construct(int $angle, ColorInterface $background = null)

Constructs Rotate filter with given angle and background color.

apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Details

at line 39
__construct(int $angle, ColorInterface $background = null)

Constructs Rotate filter with given angle and background color.

Parameters

int $angle
ColorInterface $background

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