Ejemplo n.º 1
0
        //public delegate void PhotoFilterHandler(Photo photo);
        public void Process(string path, Action <Photo> filterHandler)
        {
            var photo = Photo.Load(path);

            filterHandler(photo);

            photo.Save();
        }
        //public delegate void PhotoFilterHandler(Photo photo);
        public void Process(string path, Action <Photo> filterHandler)
        {
            var photo = Photo.Load(path);

            filterHandler(photo);

            //var filters = new PhotoFilters();
            //filters.ApplyBrightness(photo);
            //filters.ApplyContrast(photo);
            //filters.Resize(photo);

            photo.Save();
        }