Ejemplo n.º 1
0
 private void OpenFileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     filepath       = FileAssistance.OpenFile();
     FilePath.Text  = filepath;
     Original.Image = Image.FromFile(filepath, true);
     originalimg    = (Bitmap)Original.Image;
 }
 private void openToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try {
         filepath          = FileAssistance.OpenFile();
         skinfilepath.Text = filepath;
         Original.Image    = Image.FromFile(filepath, true);
         originalimg       = (Bitmap)Image.FromFile(filepath, true);
     }
     catch
     {
         MessageBox.Show("请导入文件!");
     }
 }
 private void OpenFileButton_Click(object sender, EventArgs e)
 {
     try
     {
         filepath       = FileAssistance.OpenFile();
         FilePath.Text  = filepath;
         Original.Image = Image.FromFile(filepath, true);
         originalimg    = (Bitmap)Image.FromFile(filepath, true);
     }
     catch
     {
         MessageBox.Show("请导入文件!");
     }
 }
 private void process2ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FileAssistance.SaveImg(this.Process2);
 }
 private void OriToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FileAssistance.SaveImg(this.Original);
 }
 private void resultToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     FileAssistance.SaveImg(this.Detected);
 }
Ejemplo n.º 7
0
 private void saveToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FileAssistance.SaveImg(this.resultpic);
 }