contrast.setCurrent()

Description

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

Syntax

DCSObject.camera.contrast.setCurrent(contrast);

Parameters

<long> contrast: Specifies the contrast, expressed as gain factor * 100. Values range from zero 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.contrast.setCurrent(10);  // Specifies the camera’s contrast setting for the current camera.
      

See also

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

Is this page helpful?

Leave a Reply

Your email address will not be published.