public CImage GrabFrame() { int himage = -1; CheckForError(FSDKCam.GrabFrame(camHandle, ref himage)); return(new CImage(himage)); }
private void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { //dispose managed components } if (camHandle >= 0) { FSDKCam.CloseVideoCamera(camHandle); camHandle = -1; } } disposed = true; }
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)); }
public Cam(ref string CameraName, FSDKCam.VideoFormatInfo VideoFormat) { camHandle = -1; CheckForError(FSDKCam.SetVideoFormat(ref CameraName, VideoFormat)); CheckForError(FSDKCam.OpenVideoCamera(ref CameraName, ref camHandle)); }
public Cam(ref string CameraName) { camHandle = -1; CheckForError(FSDKCam.OpenVideoCamera(ref CameraName, ref camHandle)); }