zoom.setCurrent()

Description

Specifies the camera's zoom setting for the current camera.

Syntax

DCSObject.camera.zoom.setCurrent(zoom);

Parameters

<long> zoom: Specifies the camera's zoom setting, in millimeters. Values range from 10 to 600, and the default is specific to the device.

Return value

bool

true indicates success. false indicates failure.

Remarks

The method should be called after camera.selectCamera(). If there is only one data source available, it will be selected automatically.

Example

             DCSObject.camera.selectCamera("Integrated Camera");
             DCSObject.camera.zoom.setCurrent(10);  // Specifies the camera’s zoom setting for the current camera.
      

See also

.camera.zoom.getCurrent()
.camera.zoom.getDefault()
.camera.zoom.getMin()
.camera.zoom.getMax()

Is this page helpful?

Leave a Reply

Your email address will not be published.