Beispiel #1
0
 private void btnHisto_Click(object sender, EventArgs e)
 {
     if (isGray)
     {
         Bitmap modified = (Bitmap)bm.Clone();
         MyImageProc.CreateHistogram(modified);
         picModified.Image = modified;
     }
     else
     {
         MessageBox.Show("You must Convert the Image to Gray");
     }
 }
Beispiel #2
0
 //Converting image to Gray
 private void btnGrey_Click(object sender, EventArgs e)
 {
     if (isImage)
     {
         try
         {
             bm                = new Bitmap(picOriginal.Image);
             isGray            = MyImageProc.ConvertToGray(bm);
             picOriginal.Image = bm;
             //isGray = true;
         }
         catch (Exception error)
         {
             MessageBox.Show(error.Message);
         }
     }
     else
     {
         MessageBox.Show("You must Upload an Image");
     }
 }