Пример #1
0
        private void ApplyButton_Click(object sender, EventArgs e)
        {
            GraphicWindow windows = new GraphicWindow((Bitmap)PosterizeWindowPicture.Image, (Bitmap)defaultpicture);

            windows.Show();
            this.Close();
        }
Пример #2
0
        private void doneToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GraphicWindow window = new GraphicWindow((Bitmap)NeighborhoodPicture.Image, (Bitmap)inputPicture.ToBitmap());

            window.Show();
            this.Close();
        }
Пример #3
0
        private void Applybutton_Click(object sender, EventArgs e)
        {
            GraphicWindow window = new GraphicWindow((Bitmap)StretchWindowPictureBox.Image, (Bitmap)defaultpicture);

            window.Show();
            this.Close();
        }
Пример #4
0
        private void cloneWindowToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GraphicWindow graphicWindow = new GraphicWindow((Bitmap)PictureBox.Image);

            graphicWindow.Size = this.Size;
            graphicWindow.Show();
        }
Пример #5
0
Файл: APO.cs Проект: WojtK/APO
        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");
            }
        }