예제 #1
0
 private void button1_Click(object sender, System.EventArgs e)
 {
     b_play.Enabled    = false;
     b_stop.Enabled    = true;
     panelPreview.Size = new Size(330, 330);
     wc = new WebCamera(panelPreview.Handle, panelPreview.Width, panelPreview.Height);
     wc.StartWebCam();
 }
예제 #2
0
파일: UtilityForm.cs 프로젝트: gvhung/dp2
        // bool m_bStopCamera = true;

        private void button_webCamera_start_Click(object sender, EventArgs e)
        {
            if (m_webCamera == null)
            {
                m_webCamera = new WebCamera(this.panel_camera_preview.Handle,
                                            panel_camera_preview.Width, panel_camera_preview.Height);
                m_webCamera.StartWebCam();
                //m_bStopCamera = false;
                this.button_webCamera_stop.Enabled            = true;
                this.button_webCamera_copyToClipboard.Enabled = true;
            }
        }