Image.rotateTo Method

Module: Image

Definition

Rotates the image to the specified angle.

Note

The rotation is performed counter-clockwise.

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

An error has occurred during Face Library execution.
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

An error has occurred during Face Library execution.
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

An error has occurred during Face Library execution.
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

An error has occurred during Face Library execution.
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

An error has occurred during Face Library execution.
int id3FaceImage_RotateTo (
    ID3_FACE_IMAGE hImage,
    int angle,
    ID3_FACE_IMAGE hDstImage)

Parameters

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.