예제 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (IsDisposed)
     {
         return;
     }
     if (_captureRunning)
     {
         Stop();
     }
     //Close interface and session
     NIImaq.imgClose(_sid, true);
     NIImaq.imgClose(_ifid, true);
     if (_imgDownsize != null)
     {
         _imgDownsize.Dispose();
         _imgDownsize = null;
     }
 }