copyToImageViewer()

Description

Copy an image of the specified index to an image viewer.

Syntax

ImageViewerObject.image.copyToImageViewer(index, targetImageViewer);

Parameters

<int> index: specifies the index of image in buffer. The index is 0-based.
ImageViewer targetImageViewer: a specified image viewer.

Return value

bool

Remarks

The index is 0 based.

When image buffer is full, that is count equals capacity, the copied image will not be imported into the image buffer.

When an error occurs, check getErrorCode() or getErrorString() for error information.

Example

             var imageviewer = DCSObject.getImageViewer ("ImageViewerContainer");  // Get a specified image viewer
             imageviewer.image.copyToImageViewer(0, imageviewer);
       

See also

getImageViewer()

Is this page helpful?

Leave a Reply

Your email address will not be published.