Class FillRectangleExtensions
Adds extensions that allow the filling of rectangles to the
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class FillRectangleExtensions
Methods
| Improve this Doc View SourceFill(IImageProcessingContext, Color, RectangleF)
Flood fills the image in the shape of the provided rectangle with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, Color color, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Color | color | The color. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, DrawingOptions, Color, RectangleF)
Flood fills the image in the shape of the provided rectangle with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, DrawingOptions options, Color color, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The options. |
Color | color | The color. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, DrawingOptions, IBrush, RectangleF)
Flood fills the image in the shape of the provided rectangle with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, DrawingOptions options, IBrush brush, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The options. |
IBrush | brush | The brush. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, IBrush, RectangleF)
Flood fills the image in the shape of the provided rectangle with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, IBrush brush, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
IBrush | brush | The brush. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |