Exemplo n.º 1
0
        private void ActionBar_OnButtonCopyClick(object sender)
        {
            Bitmap printedImage;

            printedImage = focusArea1.GetFocusAreaImage();
            Clipboard.SetImage(printedImage);

            OnActionBarButtonExitClick?.Invoke(this);
        }
Exemplo n.º 2
0
        private void ActionBar_OnButtonSaveClick(object sender)
        {
            Bitmap printedImage;

            printedImage = focusArea1.GetFocusAreaImage();

            SaveFileDialog saveFileDialog1 = new SaveFileDialog();

            saveFileDialog1.Filter           = "PNG files (*.png)|*.png|JPG files (*.jpg)|*.jpg|Bitmap files (*.bmp)|*.bmp|All files (*.*)|*.*";
            saveFileDialog1.FilterIndex      = 1;
            saveFileDialog1.RestoreDirectory = true;

            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                printedImage.Save(saveFileDialog1.FileName);
            }

            OnActionBarButtonExitClick?.Invoke(this);
        }
Exemplo n.º 3
0
 private void ActionBar_OnButtonExitClick(object sender)
 {
     OnActionBarButtonExitClick?.Invoke(this);
 }