Пример #1
0
 private void chckBxGrayScale_CheckedChanged(object sender, EventArgs e)
 {
     if (chckBxGrayScale.Checked == true)
     {
         ImageProc.ToGrayScale(ref currBit);
         pictureBox1.Image = (Image)currBit;
     }
     else
     {
         currBit           = new Bitmap((Image)originBit);
         pictureBox1.Image = (Image)currBit;
         pictureBox1.Refresh();
     }
 }
Пример #2
0
 private void btnMakeGray_Click(object sender, EventArgs e)
 {
     ImageProc.ToGrayScale(ref currBit);
     pictureBox1.Image       = (Image)currBit;
     chckBxGrayScale.Checked = true;
 }
Пример #3
0
 private void btnGS_Click(object sender, EventArgs e)
 {
     ImageProc.ToGrayScale(ref currBit);
     pictureBox1.Image = (Image)currBit;
 }