Example #1
0
        /// <summary>
        /// Find the possible cameras and add them to the selection menu
        /// </summary>
        private void LoadVidCapSources()
        {
            cb_vidcap.Items.Clear();
            vidcap2005 vid = new vidcap2005();

            for (int i = 0; i < vid.GetNumberOfCaptureDevices(); ++i)
            {
                cb_vidcap.Items.Add(vid.GetCaptureDeviceName(i));
            }
        }
Example #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public vidcapCamera(Int32 source = 0)
 {
     cap = new vidcap2005();
     cap.InitializeCapture(640, 480, 15, source);
     cap.ControlCapture(true);
 }