Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (pictureBox1.Image != null && FileNameText.Text != "")
     {
         NowFrame.Save(string.Format(FuncClass.Check_path($@"IDSCut\{DirText.Text}\") + "{0}.jpg", FileNameText.Text, System.Drawing.Imaging.ImageFormat.Png));
         MessageBox.Show("Save");
         FileNameText.Clear();
     }
 }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (pictureBox1.Image != null && FileNameText.Text != "")
     {
         BigShot.Save(string.Format(FuncClass.Check_path($@"ScreenCut\") + "{0}.jpg", FileNameText.Text, System.Drawing.Imaging.ImageFormat.Png));
         MessageBox.Show("Save");
     }
     else
     {
         MessageBox.Show("Please fill in the file name.");
     }
 }
Exemplo n.º 3
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (pictureBox2.Image != null && FileNameText.Text != "")
     {
         newRec.Save(string.Format(FuncClass.Check_path($@"IDSCut\{DirText.Text}\") + "{0}.jpg", FileNameText.Text, System.Drawing.Imaging.ImageFormat.Png));
         if (!Directory.Exists($@"IDSCut\{DirText.Text}"))
         {
             Directory.CreateDirectory($@"IDSCut\{DirText.Text}");
         }
         using (StreamWriter sw = new StreamWriter(FuncClass.Check_path($@"IDSCut\{DirText.Text}") + $"{FileNameText.Text}.txt"))
         {
             foreach (var item in CutRange)
             {
                 sw.WriteLine(item);
             }
             sw.Close();
         }
         pictureBox1.Refresh();
         MessageBox.Show("Save");
         FileNameText.Clear();
     }
 }