Beispiel #1
0
        private void OperCamera()
        {
            int cameraIndex = 0;

            recorder.SelectDevice(cameraIndex, devs =>
            {
                int sizeIndex = devs.IndexOf("1280*720");
                recorder.Open(cameraIndex, sizeIndex);
            });
        }
Beispiel #2
0
 private void CboDevs_SelectedIndexChanged(object sender, EventArgs e)
 {
     recorder.SelectDevice(this.cboDevs.SelectedIndex, sizes =>
     {
         this.cboSize.Items.Clear();
         if (sizes.Any())
         {
             this.cboSize.Items.AddRange(sizes.ToArray());
             this.cboSize.SelectedItem = sizes[0];
         }
     });
 }