diff --git a/Program.cs b/Program.cs index d782f88..9cf200b 100644 --- a/Program.cs +++ b/Program.cs @@ -13,7 +13,7 @@ using Newtonsoft.Json.Serialization; * Email : pablu23@gmx.de * Erstelldatum : 25.06.2020 * Last change : 25.06.2020 - * GitHub : https://github.com/Pablu23/16x16Converter + * GitHub : https://github.com/Pablu23/ConvertTo16x16 * * TODO : Add comments, bug fixes. Add Background removal. Finish Project. * @@ -47,6 +47,7 @@ namespace ConvertTo16x16 public int PixelAnzahl { get; set; } public bool RmBackground { get; set; } public Color BackgroundCol { get; set; } + public string OutputDir { get; set; } } class Program @@ -111,6 +112,13 @@ namespace ConvertTo16x16 Console.SetCursorPosition(25, Console.CursorTop - 2); } settings.FileDir = Console.ReadLine(); + Console.Write("\nGeben sie den Output Pfad an : "); + if (settings.OutputDir != null) + { + Console.WriteLine($"\nPfad : {settings.OutputDir}"); + Console.SetCursorPosition(32, Console.CursorTop - 2); + } + settings.OutputDir = Console.ReadLine(); Console.Write("\nGeben sie an Wieviele Pixel sie wollen (Empfohlen: 16 | 32) : "); if (settings.PixelAnzahl > 15) { @@ -133,7 +141,7 @@ namespace ConvertTo16x16 { case "t": settings.RmBackground = true; - Console.WriteLine("Which Color should be removed"); + Console.WriteLine("\n\n\nWhich Color should be removed"); Console.Write("Red : "); int red = Convert.ToInt32(Console.ReadLine()); Console.Write("Green : "); @@ -262,8 +270,8 @@ namespace ConvertTo16x16 } } - outcome.Save($@"{settings.FileDir}\16x16{bildName}"); - + outcome.Save($@"{settings.OutputDir}\16x16{bildName}"); + bmp.Dispose(); } } diff --git a/bin/Debug/ConvertTo16x16.exe b/bin/Debug/ConvertTo16x16.exe index a67cfe4..4a1411b 100644 Binary files a/bin/Debug/ConvertTo16x16.exe and b/bin/Debug/ConvertTo16x16.exe differ diff --git a/bin/Debug/ConvertTo16x16.pdb b/bin/Debug/ConvertTo16x16.pdb index f7ac262..e7cb927 100644 Binary files a/bin/Debug/ConvertTo16x16.pdb and b/bin/Debug/ConvertTo16x16.pdb differ diff --git a/obj/Debug/ConvertTo16x16.csprojAssemblyReference.cache b/obj/Debug/ConvertTo16x16.csprojAssemblyReference.cache index 004c5a7..f1a7de8 100644 Binary files a/obj/Debug/ConvertTo16x16.csprojAssemblyReference.cache and b/obj/Debug/ConvertTo16x16.csprojAssemblyReference.cache differ diff --git a/obj/Debug/ConvertTo16x16.exe b/obj/Debug/ConvertTo16x16.exe index a67cfe4..4a1411b 100644 Binary files a/obj/Debug/ConvertTo16x16.exe and b/obj/Debug/ConvertTo16x16.exe differ diff --git a/obj/Debug/ConvertTo16x16.pdb b/obj/Debug/ConvertTo16x16.pdb index f7ac262..e7cb927 100644 Binary files a/obj/Debug/ConvertTo16x16.pdb and b/obj/Debug/ConvertTo16x16.pdb differ