Files
app/APP/Utility/WebBoy.cs
2022-05-07 17:42:26 +02:00

13 lines
282 B
C#

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);
}
}