Class FileProviderImageResolver
Provides means to manage image buffers from an IFileInfo instance.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Resolvers
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public sealed class FileProviderImageResolver : IImageResolver
Constructors
| Edit this page View SourceFileProviderImageResolver(IFileInfo)
Initializes a new instance of the FileProviderImageResolver class.
Declaration
public FileProviderImageResolver(IFileInfo fileInfo)
Parameters
Type | Name | Description |
---|---|---|
IFileInfo | fileInfo | The file info. |
Methods
| Edit this page View SourceGetMetaDataAsync()
Asynchronously gets metadata associated with this image.
Declaration
public Task<ImageMetadata> GetMetaDataAsync()
Returns
Type | Description |
---|---|
Task<ImageMetadata> | The ImageMetadata. |
OpenReadAsync()
Asynchronously gets the input image stream.
Declaration
public Task<Stream> OpenReadAsync()
Returns
Type | Description |
---|---|
Task<Stream> | The Task<TResult>. |