Class ImageProcessingContext
Contains information about the current image request and processed image.
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Middleware
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public class ImageProcessingContext
Constructors
| Edit this page View SourceImageProcessingContext(HttpContext, Stream, CommandCollection, string, string)
Initializes a new instance of the ImageProcessingContext class.
Declaration
public ImageProcessingContext(HttpContext context, Stream stream, CommandCollection commands, string contentType, string extension)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | The current HTTP request context. |
Stream | stream | The stream containing the processed image bytes. |
CommandCollection | commands | The parsed collection of processing commands. |
string | contentType | The content type for the processed image. |
string | extension | The file extension for the processed image. |
Properties
| Edit this page View SourceCommands
Gets the parsed collection of processing commands.
Declaration
public CommandCollection Commands { get; }
Property Value
Type | Description |
---|---|
CommandCollection |
ContentType
Gets the content type for the processed image.
Declaration
public string ContentType { get; }
Property Value
Type | Description |
---|---|
string |
Context
Gets the current HTTP request context.
Declaration
public HttpContext Context { get; }
Property Value
Type | Description |
---|---|
HttpContext |
Extension
Gets the file extension for the processed image.
Declaration
public string Extension { get; }
Property Value
Type | Description |
---|---|
string |
Stream
Gets the stream containing the processed image bytes.
Declaration
public Stream Stream { get; }
Property Value
Type | Description |
---|---|
Stream |