void GetImages()
{
string imgPath = Application.StartupPath + @"\04.png";
string oldPath = Application.StartupPath + @"\OldImages";
string newPath = Application.StartupPath + @"\NewImages";
var bm = new Bitmap(imgPath);;
var folder = new DirectoryInfo(oldPath);
foreach (var file in folder.GetFiles())//.GetFiles("*.png",SearchOption.TopDirectoryOnly)
{
var f = file;
bm.Save(string.Format(@"{0}\{1}",newPath,f.Name));
Thread.Sleep(500);
}
}
{
string imgPath = Application.StartupPath + @"\04.png";
string oldPath = Application.StartupPath + @"\OldImages";
string newPath = Application.StartupPath + @"\NewImages";
var bm = new Bitmap(imgPath);;
var folder = new DirectoryInfo(oldPath);
foreach (var file in folder.GetFiles())//.GetFiles("*.png",SearchOption.TopDirectoryOnly)
{
var f = file;
bm.Save(string.Format(@"{0}\{1}",newPath,f.Name));
Thread.Sleep(500);
}
}