//开始采集 private void CarmeraStartGrab() { int nRet = m_pOperator.StartGrabbing(); if (MyCamera.MV_OK != nRet) { MessageBox.Show("开始取流失败!"); return; } //显示 nRet = m_pOperator.Display(m_CameraPicBox.Handle); if (MyCamera.MV_OK != nRet) { MessageBox.Show("显示失败!"); } }
public void CameraStartGrab(PictureBox pictureBox) { int nRet = m_CameraOperator.StartGrabbing(); if (MyCamera.MV_OK != nRet) { MessageBox.Show("开始取流失败!"); return; } //显示 nRet = m_CameraOperator.Display(pictureBox.Handle); if (MyCamera.MV_OK != nRet) { MessageBox.Show("显示失败!"); } }