2017-07-06 110 views

回答

0

你閱讀整篇文章?它在這裏實例化:

private void SetupCapture(int Camera_Identifier) 
    { 
     //update the selected device 
     CameraDevice = Camera_Identifier; 

     //Dispose of Capture if it was created before 
     if (_capture != null) _capture.Dispose(); 
     try 
     { 
      //Set up capture device 
      _capture = new Capture(CameraDevice); 
      _capture.ImageGrabbed += ProcessFrame; 
     } 
     catch (NullReferenceException excpt) 
     { 
      MessageBox.Show(excpt.Message); 
     } 
    } 

希望這會有所幫助。

Doug

+0

問題在於使用Capture類。什麼使用是必要的? – asegurpe

+0

對不起,我不明白這個問題。 – AeroClassics

+0

我附上了問題的截圖。謝謝!!! – asegurpe