Example #1
0
        private static void SaveImage(Image img, string filename)
        {
            string path = Path.Combine(Extentions.GetCurrentExeLoccation(), "Wallpapers");

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            img.Save(Path.Combine(path, filename.EndsWith(".jpg") ? filename : filename + ".jpg"), ImageFormat.Jpeg);
        }