Example #1
0
 private void saveImage()
 {
     Image bmp = GetCroppedScreenshot();
     ImageContainer ic = new ImageContainer();
     try
     {
     String savePath = ic.getNewFilename();
     bmp.Save(savePath, System.Drawing.Imaging.ImageFormat.Jpeg);
     }
     catch
     {
     this.Close(false);
     }
 }
Example #2
0
 static void Main()
 {
     ImageContainer ic = new ImageContainer();
     ic.getPath();
 }