dimanche 1 mars 2015

Save image with current date

How to set the current date for date created and date modified properties when saving an image with Image.Save? Doing it like this does not work for me:



picBoxProcessed.Image.Save(saveImgDlg.FileName, ImageFormat.Jpeg);
File.SetCreationTime(saveImgDlg.FileName, DateTime.Now);

Aucun commentaire:

Enregistrer un commentaire