class Degree extends ExpressionQualifierMultiValue implements RotationDegreeInterface

Defines how to rotate an image.

Learn more: Rotate an image

Methods

deg90()

Rotate image 90 degrees clockwise.

deg180()

Rotate image 180 degrees.

deg270()

Rotate image 90 degrees counterclockwise.

byAngle(int|array ...$degree)

Rotate an image by the given degrees.

Details

static AngleTrait deg90()

Rotate image 90 degrees clockwise.

Return Value

AngleTrait

static AngleTrait deg180()

Rotate image 180 degrees.

Return Value

AngleTrait

static AngleTrait deg270()

Rotate image 90 degrees counterclockwise.

Return Value

AngleTrait

static AngleTrait byAngle(int|array ...$degree)

Rotate an image by the given degrees.

Parameters

Name Type Description
...$degree int|array Given degrees. (Range: 0 to 360, Default: 0).

Return Value

AngleTrait

Constants

VALUE_DELIMITER

DEG_90

DEG_180

DEG_270