Пример #1
0
            public CImage GrabFrame()
            {
                int himage = -1;

                CheckForError(FSDKCam.GrabFrame(camHandle, ref himage));
                return(new CImage(himage));
            }
Пример #2
0
 private void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             //dispose managed components
         }
         if (camHandle >= 0)
         {
             FSDKCam.CloseVideoCamera(camHandle);
             camHandle = -1;
         }
     }
     disposed = true;
 }
Пример #3
0
 public Cam(FSDKCam.FSDK_VIDEOCOMPRESSIONTYPE CompressionType, string URL, string Username, string Password, int TimeoutSeconds)
 {
     camHandle = -1;
     CheckForError(FSDKCam.OpenIPVideoCamera(CompressionType, URL, Username, Password, TimeoutSeconds, ref camHandle));
 }
Пример #4
0
 public Cam(ref string CameraName, FSDKCam.VideoFormatInfo VideoFormat)
 {
     camHandle = -1;
     CheckForError(FSDKCam.SetVideoFormat(ref CameraName, VideoFormat));
     CheckForError(FSDKCam.OpenVideoCamera(ref CameraName, ref camHandle));
 }
Пример #5
0
 public Cam(FSDKCam.FSDK_VIDEOCOMPRESSIONTYPE CompressionType, string URL, string Username, string Password, int TimeoutSeconds)
 {
     camHandle = -1;
     CheckForError(FSDKCam.OpenIPVideoCamera(CompressionType, URL, Username, Password, TimeoutSeconds, ref camHandle));
 }
Пример #6
0
 public Cam(ref string CameraName, FSDKCam.VideoFormatInfo VideoFormat)
 {
     camHandle = -1;
     CheckForError(FSDKCam.SetVideoFormat(ref CameraName, VideoFormat));
     CheckForError(FSDKCam.OpenVideoCamera(ref CameraName, ref camHandle));
 }
Пример #7
0
 public Cam(ref string CameraName)
 {
     camHandle = -1;
     CheckForError(FSDKCam.OpenVideoCamera(ref CameraName, ref camHandle));
 }