Ejemplo n.º 1
0
        private static void Main(string[] args)
        {
            var options = new ProgramOptions();

            if (Parser.Default.ParseArguments(args, options))
            {
                CreateBackdrop(options);
            }
        }
Ejemplo n.º 2
0
        private static void CreateBackdrop(ProgramOptions programOptions)
        {
            var imagePath = programOptions.InputFile;

            var backdrop = new Backdrop(Image.FromFile(imagePath, false), programOptions.ToBackdropSettings());

            if (programOptions.AddDominantColorsOverlay)
            {
                AddDominantColorsOverlay(backdrop);
            }

            backdrop.Image.Save(programOptions.DefinitiveOutputFile, programOptions.OutputImageFormat.ToImageFormat());
        }