void _windowGetter_DoWork(object sender, DoWorkEventArgs e) { _windowEnumerator = new WindowStreamCapture(); while (true) { _windows = _windowEnumerator.GetAllWindowsWithoutPixels().Where(ShouldConsiderWindow); Thread.Sleep(100); } }
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; }