addImageViewer()

Description

Add an image viewer.

Syntax

DCSObject.addImageViewer(string imageContainerId);

Parameters

<string> imageContainerId: The id of an image container.

Return value

ImageViewer

Remarks

The image viewer container must be a DIV element. If the DIV element with the specified id doesn't exist, when you check getErrorString(), you will get an error "The object [object name] does not exist.".

If the image viewer with the same image container id already exists, it returns null and when you check getErrorString(), you will get an error "The object [object name] already exists.".

If Dynamsoft camera object has been removed, it returns null.

if (DCSObject) {
   DCSObject.addImageViewer("DCSImageViewerContainer2");
}
Is this page helpful?

Leave a Reply

Your email address will not be published.