DocumentImage.rotateTo Method

Module: DocumentImage

Definition

Rotates the image to the specified angle.

Note

The rotation is performed counter-clockwise.

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

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

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

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

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

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