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

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

            _pool = new BitmapPool();
            _bitmapToTree = new ScreenshotToTreeDoubleBuffered();
        }
Esempio n. 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;
 }
Esempio n. 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;
        }
Esempio n. 5
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;
        }
Esempio n. 6
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;
 }