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
| Improve this Doc 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
| Improve this Doc 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 |