Class FillExtensions
Adds extensions that allow the filling of regions with various brushes to the
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class FillExtensions
Methods
| Improve this Doc View SourceFill(IImageProcessingContext, Color)
Flood fills the image with the specified color.
Declaration
public static IImageProcessingContext Fill(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 |
Fill(IImageProcessingContext, GraphicsOptions, Color)
Flood fills the image with the specified color.
Declaration
public static IImageProcessingContext Fill(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 |
Fill(IImageProcessingContext, GraphicsOptions, IBrush)
Flood fills the image with the specified brush.
Declaration
public static IImageProcessingContext Fill(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 |
Fill(IImageProcessingContext, IBrush)
Flood fills the image with the specified brush.
Declaration
public static IImageProcessingContext Fill(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 |