public async Task LargeAvatar() { ulong id = (ulong)(76561197960279927 + (new Random().Next() % 10000)); var image = await SteamFriends.GetLargeAvatarAsync(id); if (!image.HasValue) { return; } Console.WriteLine($"image.Width {image.Value.Width}"); Console.WriteLine($"image.Height {image.Value.Height}"); DrawImage(image.Value); }
public async Task <Data.Image?> GetLargeAvatarAsync() { return(await SteamFriends.GetLargeAvatarAsync(Id)); }