public static UIImage GeneratePieceThumbnail(Artist artist, float w, float h) { return(GeneratePieceThumbnail(artist.Image, w, h, true, true)); }
public static UIImage LoadRoundedThumbnail(Artist artist) { var s = DimensionSet.ListThumbnailSquare; return(ImageCache.Get(GetImageKey(artist, s, s), () => GeneratePieceThumbnail(artist, s, s))); }
public static string GetImageKey(Artist artist, float width, float height) { return(string.Concat(artist.FirstName.ToLowerInvariant(), ".", artist.LastName.ToLowerInvariant())); }
public static UIImage GeneratePieceThumbnail(Artist artist, float w, float h) { return GeneratePieceThumbnail(artist.Image, w, h, true, true); }
public static UIImage LoadRoundedThumbnail(Artist artist) { var s = DimensionSet.ListThumbnailSquare; return ImageCache.Get(GetImageKey(artist, s, s), () => GeneratePieceThumbnail(artist, s, s)); }
public static string GetImageKey(Artist artist, float width, float height) { return string.Concat(artist.FirstName.ToLowerInvariant(), ".", artist.LastName.ToLowerInvariant()); }