private void CamStop() { WebCam.CloseVideoSource(); label2.Text = "Camera stopped."; start.Text = "Start &Webcam"; pictureBox1.Image = null; }
public Options() { InitializeComponent(); WebCam.GetCamListCombobox(OptionsWebCamList); WebCam.GetCamSettingsCombobox(OptionsWebCamSettings); AcceptButton = optionsOk; CancelButton = optionCancel; OptionsCropBoxRatioCombobox.Items.Add("No Ratio"); OptionsCropBoxRatioCombobox.Items.Add("Passport"); RestoreSettings(); GetRatio(); }
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(); } }
private void OptionsWebCamList_SelectedIndexChanged(object sender, EventArgs e) { WebCam.GetCamSettingsCombobox(OptionsWebCamSettings); }
private void Main_Closing() { WebCam.CloseVideoSource(); }
public void CamStart() { WebCam.StartWebCam(); label2.Text = "Camera running..."; start.Text = "Stop &Webcam"; }
private void Main_FormClosing(object sender, FormClosingEventArgs e) { WebCam.CloseVideoSource(); }