示例#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);
     }
 }