private static void ApplyGrayscale(string path, string newPath) { var photo = PhotoEditor.ToGrayscale(path); photo.Save(newPath, System.Drawing.Imaging.ImageFormat.Jpeg); photo.Dispose(); }
private static void ApplyAutocontrast(string path, string newPath) { var photo = PhotoEditor.ApplyContrast(path, 20); photo.Save(newPath, System.Drawing.Imaging.ImageFormat.Jpeg); photo.Dispose(); }