Курсовая работа: Програма обробки зображень
using System.Windows.Forms;
namespace Kursach
{
public partial class MainForm : Form
{
private string filename = "";
WaitForm win = null;
public MainForm()
{
InitializeComponent();
}
private void ExitToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
}
private void OpenToolStripMenuItem_Click(object sender, EventArgs e)
{
if (openFileDialog.ShowDialog() == DialogResult.OK)
picture.Image = new Bitmap(filename = openFileDialog.FileName);
}
private void SaveAsToolStripMenuItem_Click(object sender, EventArgs e)
{
if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
picture.Image.Save(filename = saveFileDialog.FileName);
}
}
private void SaveToolStripMenuItem_Click(object sender, EventArgs e)
{