public static string GetSizeUrlParams(ImageRequestMode imageMode, int width, int height)
{
string sizeStr = string.Empty;
if (width != 0 && width != 0)
{
switch (imageMode)
{
case ImageRequestMode.BinaryData:
sizeStr = string.Format("&width={0}&height={1}", width, height);
break;
case ImageRequestMode.Reference:
sizeStr = string.Format("?dynamicThumbnail=1&width={0}&height={1}", width, height);
break;
default:
break;
}
}
return sizeStr;
}
public bool SetThumbnailReference(Image thumbnailImage)