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

            windows.Show();
            this.Close();
        }
Exemple #2
0
        private void Applybutton_Click(object sender, EventArgs e)
        {
            GraphicWindow window = new GraphicWindow((Bitmap)StretchWindowPictureBox.Image, (Bitmap)defaultpicture);

            window.Show();
            this.Close();
        }
Exemple #3
0
        private void doneToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GraphicWindow window = new GraphicWindow((Bitmap)NeighborhoodPicture.Image, (Bitmap)inputPicture.ToBitmap());

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

            graphicWindow.Size = this.Size;
            graphicWindow.Show();
        }
Exemple #5
0
 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();
 }
Exemple #6
0
Fichier : APO.cs Projet : 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");
            }
        }
Exemple #7
0
        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();
        }