Class ClearPathExtensions
Adds extensions that allow the flood filling of polygon outlines without blending.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class ClearPathExtensionsMethods
| Improve this Doc View SourceClear(IImageProcessingContext, Color, IPath)
Flood fills the image within the provided region defined by an IPath using the specified color without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, Color color, IPath region)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image processing context. | 
| Color | color | The color. | 
| IPath | region | The IPath defining the region to fill. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The  | 
Clear(IImageProcessingContext, DrawingOptions, Color, IPath)
Flood fills the image within the provided region defined by an IPath using the specified color without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, DrawingOptions options, Color color, IPath region)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image processing context. | 
| DrawingOptions | options | The drawing options. | 
| Color | color | The color. | 
| IPath | region | The IPath defining the region to fill. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The  | 
Clear(IImageProcessingContext, DrawingOptions, IBrush, IPath)
Flood fills the image within the provided region defined by an IPath using the specified brush without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, DrawingOptions options, IBrush brush, IPath region)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image processing context. | 
| DrawingOptions | options | The drawing options. | 
| IBrush | brush | The brush. | 
| IPath | region | The IPath defining the region to fill. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The  | 
Clear(IImageProcessingContext, IBrush, IPath)
Flood fills the image within the provided region defined by an IPath using the specified brush without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, IBrush brush, IPath region)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image processing context. | 
| IBrush | brush | The brush. | 
| IPath | region | The IPath defining the region to fill. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The  |