Пример #1
0
 void _windowGetter_DoWork(object sender, DoWorkEventArgs e)
 {
     _windowEnumerator = new WindowStreamCapture();
     while (true)
     {
         _windows = _windowEnumerator.GetAllWindowsWithoutPixels().Where(ShouldConsiderWindow);
         Thread.Sleep(100);
     }
 }
Пример #2
0
        public CaptureThread(string saveLoc)
        {
            _saveLoc    = saveLoc;
            _aviManager = new AviManager(saveLoc, false);

            _windowCapture = new WindowStreamCapture();

            _exitEvent     = new AutoResetEvent(false);
            _pool          = new BitmapPool();
            _running       = false;
            UsePrintWindow = true;

            frame_num = 0;
        }
Пример #3
0
        public CaptureThread(string saveLoc)
        {
            _saveLoc = saveLoc;
            _aviManager = new AviManager(saveLoc, false);

            _windowCapture = new WindowStreamCapture();

            _exitEvent = new AutoResetEvent(false);
            _pool = new BitmapPool();
            _running = false;
            UsePrintWindow = true;

             frame_num = 0;
        }
Пример #4
0
 void _windowGetter_DoWork(object sender, DoWorkEventArgs e)
 {
     _windowEnumerator = new WindowStreamCapture();
     while (true)
     {
         _windows = _windowEnumerator.GetAllWindowsWithoutPixels().Where(ShouldConsiderWindow);
         Thread.Sleep(100);
     }
 }