예제 #1
0
 public MvcHtmlString RoundedCorners(int radius, Color backgroundColor)
 {
     if (_isOriginal)
     {
         return(new MvcHtmlString(_underlying.Src + "?roundedcorners=" + radius.ToString() + "&bgcolor=" + GetHexColor(backgroundColor)));
     }
     else
     {
         return(new MvcHtmlString(_underlying.Src + _underlying.GetCropUrl(_alias, useFocalPoint: _underlying.HasFocalPoint()) + "&roundedcorners=" + radius.ToString() + "&bgcolor=" + GetHexColor(backgroundColor)));
     }
 }
예제 #2
0
 public static string GetResponsiveCropUrl(
     this ImageCropDataSet cropDataSet,
     int width,
     int height
     )
 {
     return(cropDataSet.GetCropUrl(
                width,
                height,
                quality: 90,
                ratioMode: ImageCropRatioMode.Height,
                furtherOptions: "&slimmage=true"
                ));
 }