Esempio n. 1
0
 private void btnGray_Click(object sender, EventArgs e)
 {
     if (OriginalForm != null)
     {
         Bitmap copy = new Bitmap(PicOriginal);
         Processing.ConvertToGray(copy);
         PicResult = copy;
         if (ResultForm == null || ResultForm.Visible == false)
         {
             ResultForm = new ResultForm();
             ResultForm.Show();
         }
         else
         {
             OriginalForm.ReloadImage();
         }
     }
 }
Esempio n. 2
0
 private void btnVerMirroring_Click(object sender, EventArgs e)
 {
     if (OriginalForm != null)
     {
         Bitmap copy = new Bitmap(PicOriginal);
         Processing.VerticallMirroring(copy);
         PicResult = copy;
         if (ResultForm == null || ResultForm.Visible == false)
         {
             ResultForm = new ResultForm();
             ResultForm.Show();
         }
         else
         {
             ResultForm.ReloadImage();
         }
     }
 }
Esempio n. 3
0
 private void btnQuantize_Click(object sender, EventArgs e)
 {
     if (OriginalForm != null)
     {
         Bitmap copy = new Bitmap(PicOriginal);
         Processing.Quantize(copy, (int)this.numberQuantize.Value);
         PicResult = copy;
         if (ResultForm == null || ResultForm.Visible == false)
         {
             ResultForm = new ResultForm();
             ResultForm.Show();
         }
         else
         {
             ResultForm.ReloadImage();
         }
     }
 }