Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 private void PlotArgsOnImage(ref Bitmap image, ScreenshotArgs args)
 {
     if (Arguments.DoubleClick)
     {
         MousePlotter.DrawMouseDoubleClickIcon(ref image, args.MouseUp);
     }
     else
     {
         MousePlotter.DrawMouseClickIcon(ref image, args.MouseDown, args.MouseUp);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Takes Shots, keeping the queue correct.
        /// </summary>
        /// <param name="args"></param>
        internal void TakeShot(ScreenshotArgs args)
        {
            if (IsTakingShots)
            {
                if (args.DoubleClick && Shots.Count > 0)
                {
                    // If a doubleclick is detected, last shot is removed to "make room" for the double click shot.
                    Shots.RemoveAt(0);
                }

                CheckBuffer();

                Shots.Add(Screenshot.Capture(args));
            }
        }
Ejemplo n.º 3
0
 private Screenshot(ScreenshotArgs args)
 {
     _image       = CaptureScreen();
     TimeCaptured = DateTime.Now;
     Arguments    = args;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Take a screenshot.
 /// </summary>
 /// <returns>Screenshot of current desktop.</returns>
 public static Screenshot Capture(ScreenshotArgs args)
 {
     return(new Screenshot(args));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Take a screenshot.
 /// </summary>
 /// <returns>Screenshot of current desktop.</returns>
 public static Screenshot Capture(ScreenshotArgs args)
 {
     return new Screenshot(args);
 }
Ejemplo n.º 6
0
 private Screenshot(ScreenshotArgs args)
 {
     _image = CaptureScreen();
     TimeCaptured = DateTime.Now;
     Arguments = args;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// 
 /// </summary>
 private void PlotArgsOnImage(ref Bitmap image, ScreenshotArgs args)
 {
     if (Arguments.DoubleClick)
     {
         MousePlotter.DrawMouseDoubleClickIcon(ref image, args.MouseUp);
     }
     else
     {
         MousePlotter.DrawMouseClickIcon(ref image, args.MouseDown, args.MouseUp);
     }
 }
Ejemplo n.º 8
0
        /// <summary>
        /// Takes Shots, keeping the queue correct.
        /// </summary>
        /// <param name="args"></param>
        internal void TakeShot(ScreenshotArgs args)
        {
            if (IsTakingShots)
            {
                if (args.DoubleClick && Shots.Count > 0)
                {
                    // If a doubleclick is detected, last shot is removed to "make room" for the double click shot.
                    Shots.RemoveAt(0);
                }

                CheckBuffer();

                Shots.Add(Screenshot.Capture(args));
            }
        }