Beispiel #1
0
 private void CamStop()
 {
     WebCam.CloseVideoSource();
     label2.Text       = "Camera stopped.";
     start.Text        = "Start &Webcam";
     pictureBox1.Image = null;
 }
Beispiel #2
0
 public Options()
 {
     InitializeComponent();
     WebCam.GetCamListCombobox(OptionsWebCamList);
     WebCam.GetCamSettingsCombobox(OptionsWebCamSettings);
     AcceptButton = optionsOk;
     CancelButton = optionCancel;
     OptionsCropBoxRatioCombobox.Items.Add("No Ratio");
     OptionsCropBoxRatioCombobox.Items.Add("Passport");
     RestoreSettings();
     GetRatio();
 }
Beispiel #3
0
        public Main()
        {
            InitializeComponent();
            Options settingsForm = new Options();

            CropBox.pictureBox1 = pictureBox1;
            WebCam.GetCamListCombobox(settingsForm.OptionsWebCamList);
            WebCam.GetCamSettingsCombobox(settingsForm.OptionsWebCamSettings);
            WebCam.GetVideoImage(pictureBox1);
            if (Properties.Settings.Default.autoStart == true)
            {
                CamStart();
            }
        }
Beispiel #4
0
 private void OptionsWebCamList_SelectedIndexChanged(object sender, EventArgs e)
 {
     WebCam.GetCamSettingsCombobox(OptionsWebCamSettings);
 }
Beispiel #5
0
 private void Main_Closing()
 {
     WebCam.CloseVideoSource();
 }
Beispiel #6
0
 public void CamStart()
 {
     WebCam.StartWebCam();
     label2.Text = "Camera running...";
     start.Text  = "Stop &Webcam";
 }
Beispiel #7
0
 private void Main_FormClosing(object sender, FormClosingEventArgs e)
 {
     WebCam.CloseVideoSource();
 }