Exemple #1
0
        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);
        }
Exemple #2
0
 public async Task <Data.Image?> GetLargeAvatarAsync()
 {
     return(await SteamFriends.GetLargeAvatarAsync(Id));
 }