Exemplo n.º 1
0
 private void Filter_GrayScale(object sender, System.EventArgs e)
 {
     pictureBox2.Image = BitmapFilter.GrayScale(m_Bitmap);
     pictureBox2.Refresh();
     pictureBox2.Invalidate();
     SetHistogram(2);
 }
Exemplo n.º 2
0
 private void Filter_GrayScale(object sender, System.EventArgs e)
 {
     m_Undo = (Bitmap)m_Bitmap.Clone();
     if (BitmapFilter.GrayScale(m_Bitmap))
     {
         this.Invalidate();
     }
 }
Exemplo n.º 3
0
        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();
                }
            }
        }