Class DrawPathProcessor
Defines a processor to fill Image pixels withing a given IPath with the given Brush and blending defined by the given DrawingOptions.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing.Processors.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public class DrawPathProcessor : IImageProcessor
Constructors
| Edit this page View SourceDrawPathProcessor(DrawingOptions, Pen, IPath)
Initializes a new instance of the DrawPathProcessor class.
Declaration
public DrawPathProcessor(DrawingOptions options, Pen pen, IPath path)
Parameters
Type | Name | Description |
---|---|---|
DrawingOptions | options | The graphics options. |
Pen | pen | The details how to outline the region of interest. |
IPath | path | The path to be filled. |
Properties
| Edit this page View SourceOptions
Gets the DrawingOptions defining how to blend the brush pixels over the image pixels.
Declaration
public DrawingOptions Options { get; }
Property Value
Type | Description |
---|---|
DrawingOptions |
Path
Gets the path that this processor applies to.
Declaration
public IPath Path { get; }
Property Value
Type | Description |
---|---|
IPath |
Pen
Gets the Brush used for filling the destination image.
Declaration
public Pen Pen { get; }
Property Value
Type | Description |
---|---|
Pen |
Methods
| Edit this page View SourceCreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
Declaration
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration which allows altering default behaviour or extending the library. |
Image<TPixel> | source | The source image. Cannot be null. |
Rectangle | sourceRectangle | The Rectangle structure that specifies the portion of the image object to draw. |
Returns
Type | Description |
---|---|
IImageProcessor<TPixel> |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel type. |