Class ImageProcessingContext
- Namespace
- SixLabors.ImageSharp.Web.Middleware
- Assembly
- SixLabors.ImageSharp.Web.dll
Contains information about the current image request and processed image.
public class ImageProcessingContext
- Inheritance
-
ImageProcessingContext
- Inherited Members
Constructors
ImageProcessingContext(HttpContext, Stream, CommandCollection, string, string)
Initializes a new instance of the ImageProcessingContext class.
public ImageProcessingContext(HttpContext context, Stream stream, CommandCollection commands, string contentType, string extension)
Parameters
contextHttpContextThe current HTTP request context.
streamStreamThe stream containing the processed image bytes.
commandsCommandCollectionThe parsed collection of processing commands.
contentTypestringThe content type for the processed image.
extensionstringThe file extension for the processed image.
Properties
Commands
Gets the parsed collection of processing commands.
public CommandCollection Commands { get; }
Property Value
ContentType
Gets the content type for the processed image.
public string ContentType { get; }
Property Value
Context
Gets the current HTTP request context.
public HttpContext Context { get; }
Property Value
Extension
Gets the file extension for the processed image.
public string Extension { get; }
Property Value
Stream
Gets the stream containing the processed image bytes.
public Stream Stream { get; }