Interface IImageProcessor
- Namespace
- SixLabors.ImageSharp.Processing.Processors
- Assembly
- SixLabors.ImageSharp.dll
Defines an algorithm to alter the pixels of an image. Non-generic IImageProcessor implementations are responsible for:
- Encapsulating the parameters of the algorithm.
- Creating the generic IImageProcessor<TPixel> instance to execute the algorithm.
public interface IImageProcessor
Methods
CreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
Parameters
configuration
ConfigurationThe configuration which allows altering default behaviour or extending the library.
source
Image<TPixel>The source image. Cannot be null.
sourceRectangle
RectangleThe Rectangle structure that specifies the portion of the image object to draw.
Returns
- IImageProcessor<TPixel>
Type Parameters
TPixel
The pixel type.