private void ApplyButton_Click(object sender, EventArgs e) { GraphicWindow windows = new GraphicWindow((Bitmap)PosterizeWindowPicture.Image, (Bitmap)defaultpicture); windows.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 doneToolStripMenuItem_Click(object sender, EventArgs e) { GraphicWindow window = new GraphicWindow((Bitmap)NeighborhoodPicture.Image, (Bitmap)inputPicture.ToBitmap()); 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(); }
public PosterizeWindow(GraphicWindow pictureWindow) { InitializeComponent(); this.pictureWindow = pictureWindow; PosterizeWindowPicture.Image = this.pictureWindow.picture; defaultpicture = this.pictureWindow.picture; PosterizeWindowPicture.SizeMode = PictureBoxSizeMode.CenterImage; PosterizeWindowPicture.SizeMode = PictureBoxSizeMode.StretchImage; PosterizeWindowPicture.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"); } }
public StretchWindow(GraphicWindow pictureWindow) { InitializeComponent(); this.pictureWindow = pictureWindow; StretchWindowPictureBox.Image = this.pictureWindow.picture; defaultpicture = this.pictureWindow.picture; StretchWindowPictureBox.SizeMode = PictureBoxSizeMode.CenterImage; StretchWindowPictureBox.SizeMode = PictureBoxSizeMode.StretchImage; StretchWindowPictureBox.Show(); textBoxMax.Text = "255"; textBoxMin.Text = "1"; this.pictureWindow.chart.Serializer.Save(myStream); StretchChart.Serializer.Load(myStream); StretchChart.Show(); }