コード例 #1
0
 void Release()
 {
     if (iGrabber != null)
     {
         iGrabber.ReleaseFrame(iFrame);
         iGrabber = null;
         iFrame   = null;
         iBitmap  = null;
     }
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 internal Frame(FrameGrabber aGrabber, V2U_GrabFrame2 *aFrame)
 {
     iGrabber = aGrabber;
     iFrame   = aFrame;
     iBitmap  = null;
 }