Exemplo n.º 1
0
 public static void CreateThumbnails(IPictureModule resizer, IEnumerable <string> imageFiles, string outputFolder, Size size)
 {
     Parallel.ForEach(imageFiles, i =>
     {
         resizer.Resize(i, Path.Combine(outputFolder, Path.GetFileName(i)), size);
     });
 }
Exemplo n.º 2
0
        public static void CreateThumbnails(IPictureModule resizer, IEnumerable <string> imageFiles, string outputFolder, Size size)
        {
            int i = 0;

            Parallel.ForEach(imageFiles, file =>
            {
                i++;
                resizer.Resize(file, outputFolder + @"\" + i + ".jpg", size);
            });
        }