Interface IImageProcessingContext
A pixel-agnostic interface to queue up image operations to apply to an image.
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public interface IImageProcessingContext
Properties
| Improve this Doc View SourceConfiguration
Gets the configuration which allows altering default behaviour or extending the library.
Declaration
Configuration Configuration { get; }
Property Value
Type | Description |
---|---|
Configuration |
Properties
Gets a set of properties for the Image Processing Context.
Declaration
IDictionary<object, object> Properties { get; }
Property Value
Type | Description |
---|---|
IDictionary<Object, Object> |
Remarks
This can be used for storing global settings and defaults to be accessable to processors.
Methods
| Improve this Doc View SourceApplyProcessor(IImageProcessor)
Adds the processor to the current set of image operations to be applied.
Declaration
IImageProcessingContext ApplyProcessor(IImageProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessor | processor | The processor to apply. |
Returns
Type | Description |
---|---|
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.
Declaration
IImageProcessingContext ApplyProcessor(IImageProcessor processor, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessor | processor | The processor to apply. |
Rectangle | rectangle | The area to apply it to. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The current operations class to allow chaining of operations. |
GetCurrentSize()
Gets the image dimensions at the current point in the processing pipeline.
Declaration
Size GetCurrentSize()
Returns
Type | Description |
---|---|
Size | The Rectangle. |
Extension Methods
DetectEdgesExtensions.DetectEdges(IImageProcessingContext, EdgeDetector2DKernel, Boolean, Rectangle)