Table of Contents

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

context HttpContext

The current HTTP request context.

stream Stream

The stream containing the processed image bytes.

commands CommandCollection

The parsed collection of processing commands.

contentType string

The content type for the processed image.

extension string

The file extension for the processed image.

Properties

Commands

Gets the parsed collection of processing commands.

public CommandCollection Commands { get; }

Property Value

CommandCollection

ContentType

Gets the content type for the processed image.

public string ContentType { get; }

Property Value

string

Context

Gets the current HTTP request context.

public HttpContext Context { get; }

Property Value

HttpContext

Extension

Gets the file extension for the processed image.

public string Extension { get; }

Property Value

string

Stream

Gets the stream containing the processed image bytes.

public Stream Stream { get; }

Property Value

Stream