Example #1
0
 public void CaptureActiveWindow(IntPtr handle)
 {
     Win.RECT rect;
     if (Win.GetWindowRect(handle, out rect))
     {
         ScreenGrabs.Add(ScreenCapture.Grab(rect));
     }
 }
Example #2
0
        public void CaptureScreen()
        {
            ScreenGrab screenGrab = ScreenCapture.GrabAreaOfFocus();

            if (screenGrab != null)
            {
                screenGrabs.Add(screenGrab);
            }
        }