예제 #1
0
        public string GetCachedImagePath(ImageItem item, int width)
        {
            Size   size      = ImageCache.CalculateImageDimenzions(item.Width, item.Height, width, 0);
            string cachePath = GetCachedImagePath(item, size);

            if (!File.Exists(cachePath))
            {
                Resize(item, size.Width);
            }

            return(GetCachedImagePath(item, size));
        }