Exemple #1
0
 private void Control_TakeScreenshot(object sender, EventArgs e)
 {
     if (stream != null)
     {
         Image <Bgr, byte> screenshot = stream.Image;
         if (screenshot != null)
         {
             ScreenshotViewer.Show(screenshot.Bitmap);
         }
     }
 }
Exemple #2
0
        /// <summary>Returns abort, canceled, or OK.</summary>
        public static DialogResult Show(Image image)
        {
            if (image == null)
            {
                return(DialogResult.Abort);
            }
            ScreenshotViewer viewer = new ScreenshotViewer(image);

            viewer.ShowDialog();
            return(viewer.DialogResult);
        }