resolution.getAllowedValues()

Description

Retrieves the resolutions supported by the current camera.

Syntax

DCSObject.camera.resolution.getAllowedValues()

Parameters

None

Return value

Resolution[]: contains a list of all available resolutions.

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 aryresolution =  DCSObject.camera.resolution.getAllowedValues();  // Get the resolutions supported by the current camera.
           for (var i = 0; i < aryresolution.length; i ++) {
               console.log("Width: " + aryresolution[i].width + " Height: " + aryresolution[i].height);
           }
      

See also

.camera.resolution.setCurrent()
.camera.resolution.getCurrent()

Is this page helpful?

Leave a Reply

Your email address will not be published.