public WindowStreamCapture() { _windows = new List <Tree>(); _windowInfo = new Dictionary <IntPtr, ExpensiveWindowInfo>(); _pool = new BitmapPool(); _bitmapToTree = new ScreenshotToTreeDoubleBuffered(); }
public WindowStreamCapture() { _windows = new List<Tree>(); _windowInfo = new Dictionary<IntPtr, ExpensiveWindowInfo>(); _pool = new BitmapPool(); _bitmapToTree = new ScreenshotToTreeDoubleBuffered(); }
public static System.Drawing.Bitmap GetBitmapFromScreen(IntPtr handle, BitmapPool pool, int width, int height) { System.Drawing.Bitmap bitmap; if(pool != null) bitmap = pool.GetInstance(width, height); else bitmap = new System.Drawing.Bitmap(width, height); Win32.GetThumbnailUsingCopyFromScreen(handle, bitmap); return bitmap; }
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; }
public static System.Drawing.Bitmap GetBitmapFromPrintWindow(IntPtr handle, BitmapPool pool, int width, int height) { System.Drawing.Bitmap bitmap; if (pool != null) { bitmap = pool.GetInstance(width, height); } else { bitmap = new System.Drawing.Bitmap(width, height); } Win32.GetThumbnailUsingPrintWindow(handle, bitmap); return(bitmap); }