[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; } }
|