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