loadFromClipboard()

Description

Loads a DIB (windows version) image or NSImage (Mac version) from the system clipboard into Dynamsoft image viewer.

Syntax

ImageViewerObject.io.loadFromClipboard();

Parameters

None

Return value

bool

true indicates success. false indicates failure.

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

Remarks

Previously selected images will be deselected and the newly loaded image will be selected automatically.

Example

             var imageviewer = DCSObject.getImageViewer("ImageViewerContainer");  // Get a specified image viewer
             imageviewer.io.copyToClipboard(0); 
             imageviewer.io.loadFromClipboard();
      

See also

.io.copyToClipboard()