setCapacity()

Description

Sets how many images are allowed to be captured into the image buffer.

Syntax

ImageViewerObject.image.setCapacity(iValue);

Parameters

<int> iValue: the value to set

Return value

bool

Remarks

The default value of this property is 1023.

Please set it to positive integer and smaller than 2^31, otherwise it won’t be changed.

If capacity you set is smaller than count, the extra images in buffer will be removed.

When image buffer is full, that is count equals capacity, the newly acquired or loaded 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.setCapacity(1000); 
             imageviewer.image.getCapacity();
      

See also

.getImageViewer()
.image.getCapacity()
.image.getCount()
.image.setIndex()