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

# DocumentImage.rotateTo Method

Module: DocumentImage

## Definition

Rotates the image to the specified angle.

Note

The rotation is performed counter-clockwise.

Python

    rotate_to(self, angle: int, dst_document_image: DocumentImage) -> None

Parameters

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

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Dart

    void rotateTo(int angle, DocumentImage dstDocumentImage)

Parameters

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

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C#

    public void RotateTo(int angle, DocumentImage dstDocumentImage)

Parameters

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

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Java

    public void rotateTo(int angle, DocumentImage dstDocumentImage) throws DocumentException

Parameters

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

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Swift

    public func rotateTo(angle: Int32, dstDocumentImage: DocumentImage) throws

Parameters

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

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C

    int id3DocumentImage_RotateTo (
        ID3_DOCUMENT_IMAGE hDocumentImage,
        int angle,
        ID3_DOCUMENT_IMAGE hDstDocumentImage)

Parameters

> `hDocumentImage` ID3_DOCUMENT_IMAGE
> in Handle to the DocumentImage object.
> `angle` int
> in The rotation angle, in degree. Supported values are [0, 90, 180, 270].
> `hDstDocumentImage` ID3_DOCUMENT_IMAGE
> in The destination Image that receives the rotated image.

Returns

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