~clr fixed
This commit is contained in:
parent
06cafa1296
commit
ed656f503b
@ -21,6 +21,7 @@ using System.Xml;
|
||||
using Configuration = AngleSharp.Configuration;
|
||||
using NadekoBot.Attributes;
|
||||
using Discord.Commands;
|
||||
using ImageSharp.Processing.Processors;
|
||||
|
||||
namespace NadekoBot.Modules.Searches
|
||||
{
|
||||
@ -622,7 +623,7 @@ namespace NadekoBot.Modules.Searches
|
||||
return;
|
||||
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); ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user