Table of Contents

Interface IImageProcessingContext

Namespace
SixLabors.ImageSharp.Processing
Assembly
SixLabors.ImageSharp.dll

A pixel-agnostic interface to queue up image operations to apply to an image.

public interface IImageProcessingContext
Extension Methods

Properties

Configuration

Gets the configuration which allows altering default behaviour or extending the library.

Configuration Configuration { get; }

Property Value

Configuration

Properties

Gets a set of properties for the Image Processing Context.

IDictionary<object, object> Properties { get; }

Property Value

IDictionary<object, object>

Remarks

This can be used for storing global settings and defaults to be accessable to processors.

Methods

ApplyProcessor(IImageProcessor)

Adds the processor to the current set of image operations to be applied.

IImageProcessingContext ApplyProcessor(IImageProcessor processor)

Parameters

processor IImageProcessor

The processor to apply.

Returns

IImageProcessingContext

The current operations class to allow chaining of operations.

ApplyProcessor(IImageProcessor, Rectangle)

Adds the processor to the current set of image operations to be applied.

IImageProcessingContext ApplyProcessor(IImageProcessor processor, Rectangle rectangle)

Parameters

processor IImageProcessor

The processor to apply.

rectangle Rectangle

The area to apply it to.

Returns

IImageProcessingContext

The current operations class to allow chaining of operations.

GetCurrentSize()

Gets the image dimensions at the current point in the processing pipeline.

Size GetCurrentSize()

Returns

Size

The Rectangle.