コード例 #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;
 }
コード例 #2
0
 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("请导入文件!");
     }
 }
コード例 #3
0
 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("请导入文件!");
     }
 }