示例#1
0
 public static UIImage GeneratePieceThumbnail(Artist artist, float w, float h)
 {
     return(GeneratePieceThumbnail(artist.Image, w, h, true, true));
 }
示例#2
0
        public static UIImage LoadRoundedThumbnail(Artist artist)
        {
            var s = DimensionSet.ListThumbnailSquare;

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