Ejemplo n.º 1
0
 public static string getThumbDisplayUrl(string imgPath, int displayBoxWidth, int displayBoxHeight)
 {
     return(BaseShowThumbnailPage2.getThumbDisplayUrl(
                getBaseShowThumbnailPageParameters(),
                imgPath,
                displayBoxWidth,
                displayBoxHeight));
 }
Ejemplo n.º 2
0
        } // getBaseShowThumbnailPageParameters

        public static string getThumbDisplayUrl(string imgPath, System.Drawing.Size displayBoxSize)
        {
            return(BaseShowThumbnailPage2.getThumbDisplayUrl(
                       getBaseShowThumbnailPageParameters(),
                       imgPath,
                       displayBoxSize.Width,
                       displayBoxSize.Height));
        }
Ejemplo n.º 3
0
        public static string getThumbDisplayUrl(CmsLocalImageOnDisk resource, int displayBoxWidth, int displayBoxHeight)
        {
            string url = resource.getThumbDisplayUrl(displayBoxWidth, displayBoxHeight);

            if (url != "")
            {
                return(url);
            }

            url = BaseShowThumbnailPage2.getThumbDisplayUrl(
                getBaseShowThumbnailPageParameters(),
                resource.getUrl(System.Web.HttpContext.Current),
                displayBoxWidth,
                displayBoxHeight);

            if (url.ToLower().IndexOf(".aspx") == -1)
            {
                resource.setThumbDisplayUrl(displayBoxWidth, displayBoxHeight, url);
            }

            return(url);
        }