internal bool QueueFrame(IntPtr framePointer, tFrameCallback callback)
 {
     if (!camera.HasValue) {
         throw new PvException(tErr.eErrUnavailable);
     }
     tErr error;
     lock (serial) {
         error = Pv.CaptureQueueFrame(camera.Value, framePointer, callback);
     }
     if (error != tErr.eErrSuccess) {
         return false;
     }
     return true;
 }
Esempio n. 2
0
 public Camera(tCameraInfo cameraInfo)
 {
     this.cameraInfo = cameraInfo;
     callback = OnFrameReady;
 }
Esempio n. 3
0
 public Camera(tCameraInfo cameraInfo)
 {
     this.heartbeatTimer = new Timer(Heartbeat, null, 100, 100);
     this.cameraInfo = cameraInfo;
     this.callback = new tFrameCallback(OnFrameReady);
 }