~clr fixed

This commit is contained in:
Kwoth 2017-02-21 01:00:53 +01:00
parent 06cafa1296
commit ed656f503b

View File

@ -21,6 +21,7 @@ using System.Xml;
using Configuration = AngleSharp.Configuration; using Configuration = AngleSharp.Configuration;
using NadekoBot.Attributes; using NadekoBot.Attributes;
using Discord.Commands; using Discord.Commands;
using ImageSharp.Processing.Processors;
namespace NadekoBot.Modules.Searches namespace NadekoBot.Modules.Searches
{ {
@ -622,7 +623,7 @@ namespace NadekoBot.Modules.Searches
return; return;
var img = new ImageSharp.Image(50, 50); var img = new ImageSharp.Image(50, 50);
//img.FillPolygon(new ImageSharp, new ImageSharp.Color(color)); img.ApplyProcessor(new BackgroundColorProcessor<ImageSharp.Color>(ImageSharp.Color.FromHex(color)), img.Bounds);
await Context.Channel.SendFileAsync(img.ToStream(), $"{color}.png").ConfigureAwait(false); ; await Context.Channel.SendFileAsync(img.ToStream(), $"{color}.png").ConfigureAwait(false); ;
} }