flip()

Description

Flips the image of a specified index in buffer vertically (as opposed to mirror).

Syntax

ImageViewerObject.image.flip(index);

Parameters

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

Return value

bool

true indicates success. false indicates failure.

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

Example

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