From a24b151b2a9f916953ce8d81ab941289b25806f9 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Mon, 20 Mar 2017 13:45:36 +0100 Subject: [PATCH] Now even compiles and runs! --- src/NadekoBot/Modules/Searches/Searches.cs | 3 ++- src/NadekoBot/project.json | 8 ++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index 88d688c9..472a17d5 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -22,6 +22,7 @@ using Configuration = AngleSharp.Configuration; using NadekoBot.Attributes; using Discord.Commands; using ImageSharp.Processing.Processors; +using ImageSharp; namespace NadekoBot.Modules.Searches { @@ -605,7 +606,7 @@ namespace NadekoBot.Modules.Searches return; var img = new ImageSharp.Image(50, 50); - img.ApplyProcessor(new BackgroundColorProcessor(ImageSharp.Color.FromHex(color)), img.Bounds); + img.BackgroundColor(ImageSharp.Color.FromHex(color)); await Context.Channel.SendFileAsync(img.ToStream(), $"{color}.png").ConfigureAwait(false); } diff --git a/src/NadekoBot/project.json b/src/NadekoBot/project.json index cd69d074..fe93d0d3 100644 --- a/src/NadekoBot/project.json +++ b/src/NadekoBot/project.json @@ -23,12 +23,8 @@ "Google.Apis.Urlshortener.v1": "1.19.0.138", "Google.Apis.YouTube.v3": "1.20.0.701", "Google.Apis.Customsearch.v1": "1.20.0.466", - "ImageSharp": "1.0.0-alpha2-*", - "ImageSharp.Processing": "1.0.0-alpha2-*", - "ImageSharp.Formats.Png": "1.0.0-alpha2-*", - "ImageSharp.Formats.Jpeg": "1.0.0-alpha2-*", - "ImageSharp.Drawing": "1.0.0-alpha2-*", - "ImageSharp.Drawing.Paths": "1.0.0-alpha2-*", + "ImageSharp": "1.0.0-alpha4-00031", + "ImageSharp.Drawing": "1.0.0-alpha4-00031", "Microsoft.EntityFrameworkCore": "1.1.0", "Microsoft.EntityFrameworkCore.Design": "1.1.0", "Microsoft.EntityFrameworkCore.Sqlite": "1.1.0",