Class ClearExtensions
Adds extensions that allow the clearing of regions with various brushes to the
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class ClearExtensions
Methods
| Improve this Doc View SourceClear(IImageProcessingContext, Color)
Flood fills the image with the specified color without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, Color color)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Color | color | The color. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Clear(IImageProcessingContext, GraphicsOptions, Color)
Flood fills the image with the specified color without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, GraphicsOptions options, Color color)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
GraphicsOptions | options | The graphics options. |
Color | color | The color. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Clear(IImageProcessingContext, GraphicsOptions, IBrush)
Flood fills the image with the specified brush without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, GraphicsOptions options, IBrush brush)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
GraphicsOptions | options | The graphics options. |
IBrush | brush | The details how to fill the region of interest. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Clear(IImageProcessingContext, IBrush)
Flood fills the image with the specified brush without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, IBrush brush)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
IBrush | brush | The details how to fill the region of interest. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |