예제 #1
0
        public override void Close()
        {
            try
            {
                IsLink = false;
                if (m_pOperator != null)
                {
                    //停止采集
                    m_pOperator.StopGrabbing();
                    //关闭设备
                    m_pOperator.Close();



                    m_pOperator = null;
                }
            }
            catch (Exception ex)
            {
                Util.WriteLog(this.GetType(), ex);
                Util.Notify("相机关闭异常");
            }
        }
예제 #2
0
 private void Window_Closed(object sender, EventArgs e)
 {
     m_pOperator.Close();
 }
예제 #3
0
 //关闭摄像头设备
 private void button_CloseCarmer_Click(object sender, RoutedEventArgs e)
 {
     m_pOperator.Close();
     SetCtrlWhenClose();
 }
예제 #4
0
 public void CloseCameraDevice()
 {
     m_CameraOperator.Close();
 }