private void button4_Click(object sender, EventArgs e) { Bitmap dest; pictureBox1.Image = ToolFunctions.GetThumbnail((Bitmap)bitmap.Clone(), pictureBox1.Height, pictureBox1.Width) as Image; ProcessFunctions.Grey_Change(bitmap, out dest, -5); pictureBox2.Image = ToolFunctions.GetThumbnail((Bitmap)dest.Clone(), pictureBox2.Height, pictureBox2.Width) as Image; pictureBox1.MouseClick += PictureBox1_MouseClick; }
private void TrackBar_Grey_ValueChange(object sender, EventArgs e) { TrackBar self = (TrackBar)sender; Bitmap dbitmap; ProcessFunctions.Grey_Change(bmpHist, out dbitmap, self.Value); this.pictureBox_WorkPlace.Image = ToolFunctions.GetThumbnail((Bitmap)dbitmap.Clone(), pictureBox_WorkPlace.Height, pictureBox_WorkPlace.Width) as Image; //this.pictureBox_data.CreateGraphics().Clear(Color.White); ProcessFunctions.Grey_Calculator(dbitmap, out maxGreyPixel, ref countGreyPixel); Grey_Datagraphic_Layout(); }