GravatarHelp class

Simple class for creating different Gravatar Icons for users based on email. This class was contributed by J. Paul Duncan.

ImageSource src = GravatarHelper.GetImageSource(gravatarEmail.Text);

// OR (with all optional arguments)

ImageSource src = GravatarHelper.GetImageSource(gravatarEmail.Text, 80, GravatarHelper.DefaultImageTypes.Wavatar, GravatarHelper.RatingTypes.X);

// OR (Just get the URI)

Uri imageUri = GravatarHelper.GetImageUri(gravatarEmail.Text, 150);

// OR (Just get the URL as a string)

string url = GravatarHelper.ImageUrl(gravatarEmail.Text, 150);

Last edited Mar 23, 2011 at 7:58 PM by TheADOGuy, version 1


No comments yet.