public void CloseCamera()
 {
     _info     = null;
     _controls = null;
     ASICameraDll2.ASICloseCamera(_cameraId);
     _status = ASI_STATUS.CLOSED;
 }
 public void OpenCamera()
 {
     ASICameraDll.OpenCamera(_cameraId);
     _info = ASICameraDll.GetCameraProperties(_cameraId);
     ASICameraDll.InitCamera(_cameraId);
     _status = ASI_STATUS.OPENED;
 }
        public void OpenCamera()
        {
            ASICameraDll2.ASIOpenCamera(_cameraId);

            ASICameraDll2.ASI_CAMERA_INFO ci;
            ASICameraDll2.ASIGetCameraProperty(out ci, _cameraId);
            _info = ci;

            ASICameraDll2.ASIInitCamera(_cameraId);
            _status = ASI_STATUS.OPENED;
        }
 public void StartExposure(ASICameraDll2.ASI_BOOL isDark)
 {
     ASICameraDll2.ASIStartExposure(_cameraId, isDark);
     _status = ASI_STATUS.EXPOSURING;
 }
 public void StopVideoCapture()
 {
     ASICameraDll2.ASIStopVideoCapture(_cameraId);
     _status = ASI_STATUS.OPENED;
 }
        //public int DroppedFrames
        //{
        //    get { return ASICameraDll2.GetDroppedFrames(_cameraId); }
        //}

        //public bool EnableDarkSubtract(string darkImageFilePath)
        //{
        //    return ASICameraDll2.EnableDarkSubtract(_cameraId, darkImageFilePath);
        //}

        //public void DisableDarkSubtract()
        //{
        //    ASICameraDll.DisableDarkSubtract(_cameraId);
        //}

        public void StartVideoCapture()
        {
            ASICameraDll2.ASIStartVideoCapture(_cameraId);
            _status = ASI_STATUS.EXPOSURING;
        }
 public void StartExposure(int exposureMs, bool isDark)
 {
     ASICameraDll.StartExposure(_cameraId, exposureMs, isDark);
     _status = ASI_STATUS.EXPOSURING;
 }