Ejemplo n.º 1
0
        public void ConvertFiles(List <string> filesToConvert, List <Resolution> selectedResolutions, string saveLocation)
        {
            AssertArgument.IsNotNullOrEmpty(nameof(filesToConvert), filesToConvert);
            AssertArgument.IsNotNullOrEmpty(nameof(selectedResolutions), selectedResolutions);
            AssertArgument.IsNotNullOrEmpty(nameof(saveLocation), saveLocation);

            List <ImageSize> sizes = selectedResolutions.Select(x => x.ConvertToImageSize()).ToList();

            fileProcessor.ConvertSVGToPNG(filesToConvert, sizes, saveLocation).ToList();
        }