Class ClearRectangleExtensions
Adds extensions that allow the flood filling of rectangle outlines without blending.
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class ClearRectangleExtensions : object
Methods
| Improve this Doc View SourceClear(IImageProcessingContext, Color, RectangleF)
Flood fills the image in the rectangle of the provided rectangle with the specified color without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, Color color, RectangleF rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Color | color | The color. |
RectangleF | rectangle | The rectangle defining the region to fill. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Clear(IImageProcessingContext, Brush, RectangleF)
Flood fills the image in the rectangle of the provided rectangle with the specified brush without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, Brush brush, RectangleF rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Brush | brush | The brush. |
RectangleF | rectangle | The rectangle defining the region to fill. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Clear(IImageProcessingContext, DrawingOptions, Color, RectangleF)
Flood fills the image in the rectangle of the provided rectangle with the specified color without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, DrawingOptions options, Color color, RectangleF rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The drawing options. |
Color | color | The color. |
RectangleF | rectangle | The rectangle defining the region to fill. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Clear(IImageProcessingContext, DrawingOptions, Brush, RectangleF)
Flood fills the image at the given rectangle bounds with the specified brush without any blending.
Declaration
public static IImageProcessingContext Clear(this IImageProcessingContext source, DrawingOptions options, Brush brush, RectangleF rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The drawing options. |
Brush | brush | The brush. |
RectangleF | rectangle | The rectangle defining the region to fill. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |