示例#1
0
 void BackgroundWorker1ProgressChanged(object sender, System.ComponentModel.ProgressChangedEventArgs e)
 {
     grPreview.CopyFromScreen(startROI.X, startROI.Y, 0, 0, bmpPreview.Size);
     pictureBox1.Image = bmpPreview;
     if ((float)e.ProgressPercentage / 100 > MaxFV)
     {
         MaxFV = (float)e.ProgressPercentage / 100;
     }
     label1.Text = ((float)e.ProgressPercentage / 100).ToString();
     label2.Text = "Max: " + MaxFV.ToString();
 }
示例#2
0
 void Button1Click(object sender, EventArgs e)
 {
     MaxFV       = 0;
     label2.Text = "Max: " + MaxFV.ToString();
 }