void Release() { if (iGrabber != null) { iGrabber.ReleaseFrame(iFrame); iGrabber = null; iFrame = null; iBitmap = null; } }
/// <summary> /// Returns all frame grabbers that are attached locally. /// </summary> public static FrameGrabber[] OpenAllLocalFrameGrabbers() { int count = FrmGrabLocal_Count(); IntPtr[] ptrs = new IntPtr[count]; int numberOpened = FrmGrabLocal_OpenAll(ptrs, count); FrameGrabber[] frameGrabbers = new FrameGrabber[numberOpened]; for (int i = 0; i < numberOpened; i++) { frameGrabbers[i] = new FrameGrabber(ptrs[i]); } return(frameGrabbers); }
internal Frame(FrameGrabber aGrabber, V2U_GrabFrame2 *aFrame) { iGrabber = aGrabber; iFrame = aFrame; iBitmap = null; }