コード例 #1
0
 /// <summary>
 /// Gets the crop URL by using only the specified <paramref name="imageCropperValue" />.
 /// </summary>
 /// <param name="mediaItem">The media item.</param>
 /// <param name="imageCropperValue">The image cropper value.</param>
 /// <param name="cropAlias">The crop alias.</param>
 /// <param name="urlMode">The url mode.</param>
 /// <returns>
 /// The image crop URL.
 /// </returns>
 public static string GetCropUrl(
     this IPublishedContent mediaItem,
     ImageCropperValue imageCropperValue,
     string cropAlias,
     UrlMode urlMode = UrlMode.Default)
 => ImageCropperTemplateCoreExtensions.GetCropUrl(mediaItem, imageCropperValue, cropAlias, ImageUrlGenerator, PublishedValueFallback, PublishedUrlProvider, urlMode);
コード例 #2
0
 public static string GetCropUrl(this MediaWithCrops mediaWithCrops, string cropAlias, UrlMode urlMode = UrlMode.Default)
 => ImageCropperTemplateCoreExtensions.GetCropUrl(mediaWithCrops, cropAlias, ImageUrlGenerator, PublishedValueFallback, PublishedUrlProvider, urlMode);