resolution.getCurrent()

Description

Gets the current resolution for the current camera.

Syntax

DCSObject.camera.resolution.getCurrent()

Parameters

None

Return value

Resolution

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");
           var curresolution =  DCSObject.camera.resolution.getCurrent();  // Get the current resolution for the camera.
           console.log(curresolution.width + "*"  + curresolution.height);
      

See also

.camera.resolution.setCurrent()
.camera.resolution.getAllowedValues()

Is this page helpful?

Leave a Reply

Your email address will not be published.