Exemplo n.º 1
0
        private void AfterCapture(Image img)
        {
            if (img != null)
            {
                if (Program.Settings.CaptureCopyImage)
                {
                    Clipboard.SetImage(img);
                }

                if (Program.Settings.CaptureSaveImage)
                {
                    ImageData imageData = TaskHelper.PrepareImageAndFilename(img);
                    imageData.WriteToFile(Program.ScreenshotsPath);

                    if (Program.Settings.CaptureUploadImage)
                    {
                        UploadManager.UploadImageStream(imageData.ImageStream, imageData.Filename);
                    }
                    else
                    {
                        imageData.Dispose();
                    }
                }
                else if (Program.Settings.CaptureUploadImage)
                {
                    UploadManager.UploadImage(img);
                }
            }
        }
Exemplo n.º 2
0
 private void tsbDebug_MouseUp(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         UploadManager.UploadImage(Resources.ZUploaderLogo);
     }
     else if (e.Button == MouseButtons.Right)
     {
         new RegionCapturePreview(Program.Settings.SurfaceOptions).Show();
     }
 }