getImagePartUrl()

Description

Gets the URL of a specified image in the image viewer for other Dynamsoft modules to use.

Syntax

ImageViewerObject.image.getImagePartUrl(index);

Parameters

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

Return value

string

If it fails to get the URL, it returns null.

Remarks

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

Example

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