Exemplo n.º 1
0
        private void Capture()
        {
            FTimer.Start();

            while (FCaptureRunThread)
            {
                FFramePeriod = FTimer.Elapsed;
                FTimer.Reset();
                FTimer.Start();

                lock (FCaptureLock)
                {
                    IImage capbuffer = FCapture.QueryFrame();
                    if (ImageUtils.IsIntialised(capbuffer))
                    {
                        Output.Send(capbuffer);
                    }
                }

                //allow a gap where we're not locked
                Thread.Sleep(1);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Sends the internal image
 /// </summary>
 public void Send()
 {
     Link.Send(Image);
 }