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

# Image.rotateTo Method

Module: Image

## Definition

Rotates the image to the specified angle.

Note

The rotation is performed counter-clockwise.

Python

    rotate_to(self, angle: int, dst_image: Image) -> None

Parameters

> `angle` int
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].
> `dst_image` Image
> in The destination Image that receives the rotated image.

Exceptions

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

Dart

    void rotateTo(int angle, Image dstImage)

Parameters

> `angle` int
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].
> `dstImage` Image
> in The destination Image that receives the rotated image.

Exceptions

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

C#

    public void RotateTo(int angle, Image dstImage)

Parameters

> `angle` int
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].
> `dstImage` Image
> in The destination Image that receives the rotated image.

Exceptions

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

Java

    public void rotateTo(int angle, Image dstImage) throws FaceException

Parameters

> `angle` int
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].
> `dstImage` Image
> in The destination Image that receives the rotated image.

Exceptions

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

Swift

    public func rotateTo(angle: Int32, dstImage: Image) throws

Parameters

> `angle` Int32
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].
> `dstImage` Image
> in The destination Image that receives the rotated image.

Exceptions

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

C

    int id3FaceImage_RotateTo (
        ID3_FACE_IMAGE hImage,
        int angle,
        ID3_FACE_IMAGE hDstImage)

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].
> `hDstImage` ID3_FACE_IMAGE
> in The destination Image that receives the rotated image.

Returns

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