示例#1
0
 private void GrayScale_Click(object sender, EventArgs e)
 {
     tmp = img.Clone();
     tmp = ImageOperation.GrayScale(tmp);
     pictureBox2.Image = tmp.bitmap;
     generateHistogram(img, chart1);
     generateHistogram(tmp, chart2);
 }
示例#2
0
        private void GrayScale_Click(object sender, EventArgs e)
        {
            MDIForm f = ((MDIForm)ActiveMdiChild);

            f.img = ImageOperation.GrayScale(f.img);
            //f.UpdateTMP();
            generateHistogram(f.img, chart1);
            //generateHistogram(f.tmp, chart2);
        }