gain.setCurrent()

Description

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

Syntax

DCSObject.camera.gain.setCurrent(gain);

Parameters

<long> gain: Specifies the gain adjustment. Zero is normal. Positive values are brighter and negative values are darker. The range of values depends on 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.gain.setCurrent(10);  // Specifies the camera’s gain setting for the current camera.
      

See also

.camera.gain.getCurrent()
.camera.gain.getDefault()
.camera.gain.getMin()
.camera.gain.getMax()
.camera.gain.getIfAuto()
.camera.gain.setIfAuto()
.camera.gain.getIfDefaultAuto()