GetAvatar
Retrieves a Roblox user's avatar Image as a BitmapImage using their username. Returns the avatar image if found, otherwise returns null.
Usage:
Api.misc.GetAvatar(string username);
Example:
BitmapImage avatar = Api.misc.GetAvatar("ArcaneDevz"); // Gets the avatar Image for username "ArcaneDevz"
if (avatar != null)
{
Image avatarImage = new Image();
avatarImage.Source = avatar;
}
Last updated