Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (openFileDialog.ShowDialog() == DialogResult.OK)
     {
         var fileName = openFileDialog.FileName;
         sourceImg = Image.FromFile(fileName);
         labImg    = new LabImg(sourceImg);
         ShowImg(sourcePictureBox, sourceImg);
         ShowImg(processedPictureBox, sourceImg);
     }
 }
Beispiel #2
0
 private void resetBtn_Click(object sender, EventArgs e)
 {
     labImg = new LabImg(sourceImg);
     ShowImg(processedPictureBox, sourceImg);
 }