static void StandardLink() { // Source: https://hyruleanassassin.deviantart.com/art/Link-Minimalist-Wallpaper-647717661 ReportStart(); string url = @"https://pre00.deviantart.net/254c/th/pre/i/2017/172/5/8/link_minimalist_wallpaper_by_hyruleanassassin-dapmu59.jpg"; using (Bitmap input = DownloadImage(url)) { IAsciifier asciifier = Asciifier.SectionedColor; asciifier.MaxDegreeOfParallelism = MaxCores; // Text ICharacterSet charset = new OrderedCharacterSet("COURAGE", new OrderedRules()); IAsciifyFont font = new TrueTypeAsciifyFont("Lucida Console", 10, FontStyle.Bold, charset, true); // Color asciifier.ForegroundOnly = true; Color background = Color.FromArgb(2, 38, 2); List <Color> colors = PaletteChooser.FindMainColorsByLab(input, 256, 8); AsciifyPalette palette = new AsciifyPalette(colors, background: background); // Asciify asciifier.Initialize(font, charset, palette); using (Bitmap prepared = asciifier.PrepareImage(input, 1, background)) using (Bitmap output = asciifier.AsciifyImage(prepared)) output.OpenInMSPaint(); } ReportEnd(); }
static void SmugAnimeFace() { // Source: https://www.reddit.com/r/Nisekoi/comments/49qsnx/made_a_minimalist_wallpaper_for_smug_marika/ ReportStart(); string url = @"https://i.imgur.com/Ne42TUC.png"; using (Bitmap input = DownloadImage(url)) { IAsciifier asciifier = Asciifier.SectionedColor; asciifier.MaxDegreeOfParallelism = MaxCores; // Text ICharacterSet charset = new OrderedCharacterSet("SMUGANIMEFACE", new OrderedRules()); IAsciifyFont font = new TrueTypeAsciifyFont("Lucida Console", 10, FontStyle.Bold, charset, true); // Color asciifier.ForegroundOnly = true; Color background = Color.FromArgb(113, 113, 113); List <Color> colors = PaletteChooser.FindMainColorsByLab(input, 256, 5); AsciifyPalette palette = new AsciifyPalette(colors, background: background); // Asciify asciifier.Initialize(font, charset, palette); using (Bitmap prepared = asciifier.PrepareImage(input, 1, background)) using (Bitmap output = asciifier.AsciifyImage(prepared)) output.OpenInMSPaint(); } ReportEnd(); }