Example #1
0
        public ScreenShotForm(ScreenShot screenShot)
        {
            InitializeComponent();

            Bounds = Screen.PrimaryScreen.Bounds;

            _control = new ScreenShotControl();
            _control.ScreenShot = screenShot;
            _control.Parent = this;
            _control.Dock = DockStyle.Fill;
        }
Example #2
0
        public static Bitmap EditScreenShot(ScreenShot shot)
        {
            using (ScreenShotForm form = new ScreenShotForm(shot))
            {
                Bitmap bitmap = null;

                form._control.BitmapCaptured += new EventHandler(delegate(object sender, EventArgs args)
                {
                    bitmap = form._control.GetAndClearCapturedBitmap();

                    form.Close();
                });

                DialogResult result = form.ShowDialog();

                return bitmap;
            }
        }