예제 #1
0
        private uint ImageAcquiredDriverCallback(uint session, int bufferNumber, IntPtr callbackData)
        {
            ImaqdxImageAcquiredEventArgs eventArgs = new ImaqdxImageAcquiredEventArgs((uint)bufferNumber);

            RaiseEvent <ImaqdxImageAcquiredEventArgs>(ImageAcquiredEventKey, eventArgs);
            return((uint)(_frameDoneDriverCallbackInstalled ? 1 : 0));
        }
예제 #2
0
        private void OnImageAcquired(object sender, ImaqdxImageAcquiredEventArgs e)
        {
            if (_session.Handle == null)
            {
                return;
            }

            lock (ImageAcquiredLockObject)
            {
                foreach (EventHandler <ImaqdxImageAcquiredEventArgs> frameDone in _frameDoneEventHandlers)
                {
                    frameDone(sender, e);
                }
            }
        }