brightness.setCurrent()

Description

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

Syntax

DCSObject.camera.brightness.setCurrent(brightness);

Parameters

<long> brightness : Specifies the brightness, also called the black level. For NTSC, the value is expressed in IRE units * 100. For non-NTSC sources, the units are arbitrary, with zero representing blanking and 10,000 representing pure white. Values range from –10,000 to 10,000.

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.brightness.getMax();
             DCSObject.camera.brightness.getMin();
             DCSObject.camera.brightness.setCurrent(10);  // Specifies the camera’s brightness setting for the current camera.
      

See also

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

Is this page helpful?

Leave a Reply

Your email address will not be published.