Search Results for

    Show / Hide Table of Contents
    View Source

    Class ImageSharpImageUrlGenerator

    Exposes a method that generates an image URL based on the specified options that can be processed by ImageSharp.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Web.Common.Media
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class ImageSharpImageUrlGenerator : IImageUrlGenerator

    Constructors

    View Source

    ImageSharpImageUrlGenerator(Configuration)

    Initializes a new instance of the ImageSharpImageUrlGenerator class.

    Declaration
    public ImageSharpImageUrlGenerator(Configuration configuration)
    Parameters
    Type Name Description
    Configuration configuration

    The ImageSharp configuration.

    Properties

    View Source

    SupportedImageFileTypes

    Declaration
    public IEnumerable<string> SupportedImageFileTypes { get; }
    Property Value
    Type Description
    IEnumerable<System.String>

    Methods

    View Source

    GetImageUrl(ImageUrlGenerationOptions)

    Gets the image URL based on the specified options.

    Declaration
    public string GetImageUrl(ImageUrlGenerationOptions options)
    Parameters
    Type Name Description
    ImageUrlGenerationOptions options

    The image URL generation options.

    Returns
    Type Description
    System.String

    The generated image URL.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ImageSharpImageUrlGenerator(Configuration)
    • Properties
      • SupportedImageFileTypes
    • Methods
      • GetImageUrl(ImageUrlGenerationOptions)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX