Пример #1
0
        // lab 3
        private void neighborhoodOperationsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NeighborhoodOperationsForm form = new NeighborhoodOperationsForm(panel)
            {
                TopLevel = false
            };

            pContainer.Controls.Add(form);
            form.Show();
        }
Пример #2
0
        private void doneToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bitmap                     bitmap         = new Bitmap(MasksPictureBox.Image);
            Image <Bgra, byte>         img            = bitmap.ToImage <Bgra, byte>();
            NeighborhoodOperationsForm operationsForm = new NeighborhoodOperationsForm(img, panel)
            {
                TopLevel = false
            };

            panel.Controls.Add(panel);
            operationsForm.Show();
            this.Close();
        }
Пример #3
0
 private void neighborhoodOperationsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (bitmap != null)
     {
         Image <Bgra, byte>         image          = bitmap.ToImage <Bgra, byte>();
         NeighborhoodOperationsForm operationsForm = new NeighborhoodOperationsForm(image, panel)
         {
             TopLevel = false
         };
         panel.Controls.Add(operationsForm);
         operationsForm.Show();
         this.Close();
     }
 }