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))); } }
public static string GetResponsiveCropUrl( this ImageCropDataSet cropDataSet, int width, int height ) { return(cropDataSet.GetCropUrl( width, height, quality: 90, ratioMode: ImageCropRatioMode.Height, furtherOptions: "&slimmage=true" )); }