Viscomsoft .Net Video Capture SDK

VideoDevice.SelectedResolution Property

 

Get/Set the current selected VideoResolution object.

VideoCapture.VideoDevice.SelectedResolution[=VideoResolution]

Parameter
the VideoResolution object.

Namespace: Viscomsoft.VideoCapture

Remark
This property is Read/Write.

Example

   

[c# Syntax] 
  public VideoCapture _capture =  new VideoCapture();
  public Devices _devices = new Devices();
 
  _capture.Initialize();
  _devices.Refresh();
   foreach (VideoResolution videoresolution in _capture.VideoDevice.VideoResolutions)
   {
      if (videoresolution.Name.Equals(cbovideoformat.SelectedItem.ToString()))
      {
       _capture.VideoDevice.SelectedResolution = videoresolution;

        cboframerate.Items.Clear();
         for (int i = videoresolution.MinFrameRate; i <= videoresolution.MaxFrameRate; i++)
              cboframerate.Items.Add(i);

         break;
       }
}