Exemple #1
0
        public WindowStreamCapture()
        {
            _windows    = new List <Tree>();
            _windowInfo = new Dictionary <IntPtr, ExpensiveWindowInfo>();

            _pool         = new BitmapPool();
            _bitmapToTree = new ScreenshotToTreeDoubleBuffered();
        }
Exemple #2
0
        public WindowStreamCapture()
        {
            _windows = new List<Tree>();
            _windowInfo = new Dictionary<IntPtr, ExpensiveWindowInfo>();

            _pool = new BitmapPool();
            _bitmapToTree = new ScreenshotToTreeDoubleBuffered();
        }
Exemple #3
0
 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;
 }
Exemple #4
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;
        }
Exemple #5
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);
 }
Exemple #6
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;
        }