Class FillRectangleExtensions
Adds extensions that allow the filling of rectangles.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class FillRectangleExtensions
Methods
| Edit this page 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 source image processing context. |
Color | color | The color. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Fill(IImageProcessingContext, Brush, RectangleF)
Flood fills the image in the shape of the provided rectangle with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, Brush brush, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Brush | brush | The brush. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
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 source image processing context. |
DrawingOptions | options | The options. |
Color | color | The color. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Fill(IImageProcessingContext, DrawingOptions, Brush, 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, Brush brush, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The options. |
Brush | brush | The brush. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |