private void TakeScreenshot() { Rectangle rect = Program.Settings.AutoCaptureRegion; if (!rect.IsEmpty) { Image img = Screenshot.CaptureRectangle(rect); if (img != null) { TaskSettings taskSettings = TaskSettings.GetDefaultTaskSettings(); taskSettings.UseDefaultAfterCaptureJob = false; taskSettings.UseDefaultAdvancedSettings = false; taskSettings.AdvancedSettings.DisableNotifications = true; UploadManager.RunImageTask(img, taskSettings); } } }
public static void OpenWebpageCapture(TaskSettings taskSettings = null) { if (taskSettings == null) { taskSettings = TaskSettings.GetDefaultTaskSettings(); } WebpageCaptureForm webpageCaptureForm = new WebpageCaptureForm(); webpageCaptureForm.OnImageUploadRequested += img => UploadManager.RunImageTask(img, taskSettings); webpageCaptureForm.OnImageCopyRequested += img => { using (img) { ClipboardHelpers.CopyImage(img); } }; webpageCaptureForm.Show(); }
public static void OpenIndexFolder() { UploadManager.IndexFolder(); }