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
Properties
Gets a set of properties for the Image Processing Context.
IDictionary<object, object> Properties { get; }
Property Value
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
IImageProcessorThe 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
IImageProcessorThe processor to apply.
rectangle
RectangleThe 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()