Addon.Webcam.SetResolution()

Description

Sets the resolution for the current webcam.

Syntax

.Addon.Webcam.SetResolution(string resolution);

Parameters

<string> resolution: Specifies the resolution to use.

Return value

bool

true indicates success. false indicates failure.

Remarks

The method should be called after Addon.Webcam.SelectSource. If there is only one data source available, it will be selected automatically.

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

Example

if (DWObject)
  {
   DWObject.Addon.Webcam.SetResolution("1280 x 720"); 
   // Please pay attention to the format. And make sure to use the character 'x' instead of the multiplication sign.
  }

See Also

Addon.Webcam.GetResolution

Is this page helpful?

Leave a Reply

Your email address will not be published.