This commit is contained in:
2022-05-07 17:42:26 +02:00
parent d7f2348f0d
commit 23930b44a2
8 changed files with 51 additions and 22 deletions

12
APP/Utility/WebBoy.cs Normal file
View File

@@ -0,0 +1,12 @@
namespace APP.Utility;
internal static class WebBoy
{
private static readonly HttpClient Client = new();
internal static async Task<Bitmap> DownloadImage(string url)
{
await using var s = await Client.GetStreamAsync(url);
return new Bitmap(s);
}
}