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("相机关闭异常"); } }
private void Window_Closed(object sender, EventArgs e) { m_pOperator.Close(); }
//关闭摄像头设备 private void button_CloseCarmer_Click(object sender, RoutedEventArgs e) { m_pOperator.Close(); SetCtrlWhenClose(); }
public void CloseCameraDevice() { m_CameraOperator.Close(); }