示例#1
0
 private void Stop_Cam_Click(object sender, EventArgs e)
 {
     try
     {
         webcam.Stop();
         ImageR.Image = null;
         Stop_Cam.Hide();
         Cam_Start_btn.Show();
         // TrackBar_Zoom.Hide();
     }
     catch (Exception)
     {
     }
 }
示例#2
0
 private void Capture_btn_Click(object sender, EventArgs e)
 {
     try
     {
         webcam.Stop();
         //ImageR.SizeMode = PictureBoxSizeMode.CenterImage;
         //imgOriginal = ImageR.Image;
         Cam_Start_btn.Show();
         //TrackBar_Zoom.Show();
         Stop_Cam.Hide();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }