private void Filter_GrayScale(object sender, System.EventArgs e) { pictureBox2.Image = BitmapFilter.GrayScale(m_Bitmap); pictureBox2.Refresh(); pictureBox2.Invalidate(); SetHistogram(2); }
private void Filter_GrayScale(object sender, System.EventArgs e) { m_Undo = (Bitmap)m_Bitmap.Clone(); if (BitmapFilter.GrayScale(m_Bitmap)) { this.Invalidate(); } }
private void Filter_GrayScale(object sender, System.EventArgs e) { ColorInput dlg = new ColorInput(); dlg.red = dlg.green = dlg.blue = 0; if (DialogResult.OK == dlg.ShowDialog()) { m_Undo = (Bitmap)m_Bitmap.Clone(); if (BitmapFilter.GrayScale(m_Bitmap, dlg.red, dlg.green, dlg.blue)) { this.Invalidate(); } } }