Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# Image.rotate Method

Module: Image

## Definition

Rotates the image in-place to the specified angle.

Note

The rotation is performed counter-clockwise.

Python

    rotate(self, angle: int) -> None

Parameters

> `angle` int
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    void rotate(int angle)

Parameters

> `angle` int
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public void Rotate(int angle)

Parameters

> `angle` int
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public void rotate(int angle) throws FaceException

Parameters

> `angle` int
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public func rotate(angle: Int32) throws

Parameters

> `angle` Int32
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceImage_Rotate (
        ID3_FACE_IMAGE hImage,
        int angle)

Parameters

> `hImage` ID3_FACE_IMAGE
> in Handle to the Image object.
> `angle` int
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].

Returns

> `int`
> An error code.
> See id3FaceError file for the list of possible error codes.