setMargin()

Description

Sets the margin between images when multiple images are displayed in an image viewer.

Syntax

ImageViewerObject.ui.setMargin(iValue);

Parameters

<int> iValue: the value to set

Return value

bool

Remarks

The default value will auto judge.

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

Example

             var imageviewer = DCSObject.getImageViewer ("ImageViewerContainer");  // Get a specified image viewer
             imageviewer.ui.setImageViewMode(2,2);
             imageviewer.ui.setMargin(20);  // Set the margin between images
      

See also

.ui.setImageViewMode()
.ui.getMargin()

Is this page helpful?

Leave a Reply

Your email address will not be published.