예제 #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);
     }
 }
예제 #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));
            }
        }
예제 #3
0
 private Screenshot(ScreenshotArgs args)
 {
     _image       = CaptureScreen();
     TimeCaptured = DateTime.Now;
     Arguments    = args;
 }
예제 #4
0
 /// <summary>
 /// Take a screenshot.
 /// </summary>
 /// <returns>Screenshot of current desktop.</returns>
 public static Screenshot Capture(ScreenshotArgs args)
 {
     return(new Screenshot(args));
 }
예제 #5
0
 /// <summary>
 /// Take a screenshot.
 /// </summary>
 /// <returns>Screenshot of current desktop.</returns>
 public static Screenshot Capture(ScreenshotArgs args)
 {
     return new Screenshot(args);
 }
예제 #6
0
 private Screenshot(ScreenshotArgs args)
 {
     _image = CaptureScreen();
     TimeCaptured = DateTime.Now;
     Arguments = args;
 }
예제 #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);
     }
 }
예제 #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));
            }
        }