예제 #1
0
 private void Grey_Page_Init()
 {
     greyReset();
     ProcessFunctions.Grey_Calculator(bmpHist, out maxGreyPixel, ref countGreyPixel);
     this.pictureBox_WorkPlace.MouseClick += PictureBox2_MouseClick_GetColor;
     Grey_Datagraphic_Layout();
 }
예제 #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            ProcessFunctions.Grey_Calculator(bmpHist, out maxPixel, ref countPixel);
            Grey_ScaleMapForm_Paint();
            pictureBox1.Image = ToolFunctions.GetThumbnail((Bitmap)bitmap.Clone(), pictureBox1.Height, pictureBox1.Width) as Image;
            Bitmap destB;

            ProcessFunctions.Balance(bitmap, out destB);
            pictureBox2.Image = ToolFunctions.GetThumbnail((Bitmap)destB.Clone(), pictureBox2.Height, pictureBox2.Width) as Image;
        }
예제 #3
0
        private void Get_Balance_Click(object sender, EventArgs e)
        {
            Button self = (Button)sender;
            Bitmap dbitmap;

            ProcessFunctions.Balance(bmpHist, out dbitmap);
            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();
        }
예제 #4
0
        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();
        }