mirror of
https://github.com/ultrasn0w/app.git
synced 2025-12-13 10:29:53 +01:00
13 lines
282 B
C#
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);
|
|
}
|
|
}
|