resolution.setCurrent()

Description

Sets the resolution for the current camera.

Syntax

DCSObject.camera.resolution.setCurrent(resolution)

Parameters

<Resolution> resolution: Specifies the resolution to use.

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.

Please make sure to use a resolution that the current camera supports.

Example

             DCSObject.camera.selectCamera("Integrated Camera");
             DCSObject.camera.resolution.setCurrent({width:1280, height:720});  // Set the resolution for the current camera.
      

See also

.camera.resolution.getcurrent()
.camera.resolution.getAllowedValues()