예제 #1
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;
        }
예제 #2
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();
        }