trait AngleTrait

Trait AngleTrait

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