rotateRight()

Description

Rotates the image of a specified index in buffer by 90 degrees clockwise.

Syntax

ImageViewerObject.image.rotateRight(index);

Parameters

<int> index: specifies the index of image in the buffer. The index is 0-based.

Return value

bool

true indicates success. false indicates failure.

Example

if (DCSObject) {
    var imageviewer = DCSObject.getImageViewer("ImageViewerContainer");
    imageviewer.image.rotateRight(0);
}

Remarks

rotateRight() rotates an image and replaces the original image with the rotated copy.

When false is returned, check getErrorCode() or getErrorString() for error information.

See Also

.image.rotateLeft()