UrlHelper.AvatarUrl Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

AvatarUrl(IHasAvatar, int?, int?, bool, Color?, bool, bool, bool)

Returns an url to the avatar image for the specified object.

public static string AvatarUrl(this IHasAvatar obj, int? width = default(int? ), int? height = default(int? ), bool retina = true, Color? background = default(Color? ), bool absolute = false, bool rasterize = false, bool cachebust = true)

Parameters

obj
IHasAvatar

The object for which to return a thumbnail url.

width
int?

The width constraint.

height
int?

The height constraint.

retina
bool

If true, the thumbnail image is created with 2x resolution.

background
System.Drawing.Color?

The background color to apply (null for transparency), white will be used for jpg images when background is unspecified.

absolute
bool

true to generate an absolute url, otherwise false

rasterize
bool
cachebust
bool

Returns

string