Ejemplo n.º 1
0
 public void CaptureActiveWindow(IntPtr handle)
 {
     Win.RECT rect;
     if (Win.GetWindowRect(handle, out rect))
     {
         ScreenGrabs.Add(ScreenCapture.Grab(rect));
     }
 }
Ejemplo n.º 2
0
        public override void PostProcess()
        {
            Rect mouseMoveBounds = GetMouseMoveBounds();

            xAdjust = 100;
            yAdjust = 100;
            mouseMoveBounds.Inflate(xAdjust, yAdjust); // Get more than the mouse actually moved for context (useful for very tiny mouse moves).
            ScreenGrabs.Crop(mouseMoveBounds, ref xAdjust, ref yAdjust);
            base.PostProcess();
        }
Ejemplo n.º 3
0
        public override void PostProcess()
        {
            Rect mouseClickRect = new Rect(position.X, position.Y, 1, 1);

            xAdjust = 100;
            yAdjust = 100;
            mouseClickRect.Inflate(xAdjust, yAdjust); // Crop to a 200x200px square around the click for context.
            ScreenGrabs.Crop(mouseClickRect, ref xAdjust, ref yAdjust);
            base.PostProcess();
        }