Now even compiles and runs!

This commit is contained in:
Kwoth
2017-03-20 13:45:36 +01:00
parent f680c476a6
commit a24b151b2a
2 changed files with 4 additions and 7 deletions

View File

@@ -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>(ImageSharp.Color.FromHex(color)), img.Bounds);
img.BackgroundColor(ImageSharp.Color.FromHex(color));
await Context.Channel.SendFileAsync(img.ToStream(), $"{color}.png").ConfigureAwait(false);
}