private void ApplyButton_Click(object sender, EventArgs e) { GraphicWindow windows = new GraphicWindow((Bitmap)PosterizeWindowPicture.Image, (Bitmap)defaultpicture); windows.Show(); this.Close(); }
private void doneToolStripMenuItem_Click(object sender, EventArgs e) { GraphicWindow window = new GraphicWindow((Bitmap)NeighborhoodPicture.Image, (Bitmap)inputPicture.ToBitmap()); window.Show(); this.Close(); }
private void Applybutton_Click(object sender, EventArgs e) { GraphicWindow window = new GraphicWindow((Bitmap)StretchWindowPictureBox.Image, (Bitmap)defaultpicture); window.Show(); this.Close(); }
private void cloneWindowToolStripMenuItem_Click(object sender, EventArgs e) { GraphicWindow graphicWindow = new GraphicWindow((Bitmap)PictureBox.Image); graphicWindow.Size = this.Size; graphicWindow.Show(); }
private void openFileToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog g = new OpenFileDialog(); g.ShowDialog(); try { GraphicWindow pictureWindow = new GraphicWindow(new Bitmap(g.FileName)); pictureWindow.Show(); } catch { MessageBox.Show("You have not selected anything \nYou must select a picture"); } }