RestImageResize/RestImageResizeService.cs
/// <summary>
/// Resizes image if input image Url is supported.
/// </summary>
/// <param name="url">Image url to resize.</param>
/// <param name="resizedImageUrl">Local url of resized image or null if input image url is not supported.</param>
/// <returns><c>true</c> if image was sucessfully resized, otherwise - <c>false</c>.</returns>
Resizes image if input image Url is supported.
Resizes image if input image Url is supported .
public virtual bool TryResizeImage(Uri url, out Uri resizedImageUrl)
        {
            Initialize();
            url = GetRelativeUri(url);
            if (url != null && Encoder.IsSupportedUri(url))
            {
                resizedImageUrl = Encoder.EncodeUri(url);
                return true;
            }
            resizedImageUrl = null;
            return false;
        }
public virtual bool TryResizeImage ( Uri url , out Uri resizedImageUrl ) { Initialize ( ) ; url = GetRelativeUri ( url ) ; if ( url != null && Encoder . IsSupportedUri ( url ) ) { resizedImageUrl = Encoder . EncodeUri ( url ) ; return true ; } resizedImageUrl = null ; return false ; }
Resizes image if input image Url is supported.
Resizes image if input image Url is supported .
None
url
Uri
Image url to resize.
Image url to resize .
Uri
out
<not_specific>
resizedImageUrl
<not_specific>
Local url of resized image or null if input image url is not supported.
Local url of resized image or null if input image url is not supported .