Class WebRootImageProvider
Returns images from the web root file provider.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Providers
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public sealed class WebRootImageProvider : FileProviderImageProvider, IImageProvider
Constructors
| Edit this page View SourceWebRootImageProvider(IWebHostEnvironment, FormatUtilities)
Initializes a new instance of the WebRootImageProvider class.
Declaration
public WebRootImageProvider(IWebHostEnvironment environment, FormatUtilities formatUtilities)
Parameters
Type | Name | Description |
---|---|---|
IWebHostEnvironment | environment | The web hosting environment. |
FormatUtilities | formatUtilities | Contains various format helper methods based on the current configuration. |