示例#1
0
 private void btn_binaryzation_Click(object sender, EventArgs e)
 {
     try
     {
         curBitmap = imageProcessing.binaryzation(curBitmap, curBitmap);
         Invalidate();
     }
     catch (NullReferenceException)
     {
         MessageBox.Show("请选择图片");
     }
     catch (Exception exp)
     {
         MessageBox.Show(exp.Message);
     }
 }