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(); } }
private void btnMakeGray_Click(object sender, EventArgs e) { ImageProc.ToGrayScale(ref currBit); pictureBox1.Image = (Image)currBit; chckBxGrayScale.Checked = true; }
private void btnGS_Click(object sender, EventArgs e) { ImageProc.ToGrayScale(ref currBit); pictureBox1.Image = (Image)currBit; }