Class Brushes
A collection of methods for creating generic brushes.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class Brushes
Methods
| Edit this page View SourceBackwardDiagonal(Color)
Create as brush that will paint a Backward Diagonal Hatch Pattern with the specified foreground color and a transparent background.
Declaration
public static PatternBrush BackwardDiagonal(Color foreColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
BackwardDiagonal(Color, Color)
Create as brush that will paint a Backward Diagonal Hatch Pattern with the specified colors
Declaration
public static PatternBrush BackwardDiagonal(Color foreColor, Color backColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Color | backColor | Color of the background. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
ForwardDiagonal(Color)
Create as brush that will paint a Forward Diagonal Hatch Pattern with the specified foreground color and a transparent background.
Declaration
public static PatternBrush ForwardDiagonal(Color foreColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
ForwardDiagonal(Color, Color)
Create as brush that will paint a Forward Diagonal Hatch Pattern with the specified colors
Declaration
public static PatternBrush ForwardDiagonal(Color foreColor, Color backColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Color | backColor | Color of the background. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
Horizontal(Color)
Create as brush that will paint a Horizontal Hatch Pattern with the specified foreground color and a transparent background.
Declaration
public static PatternBrush Horizontal(Color foreColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
Horizontal(Color, Color)
Create as brush that will paint a Horizontal Hatch Pattern with the specified colors
Declaration
public static PatternBrush Horizontal(Color foreColor, Color backColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Color | backColor | Color of the background. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
Min(Color)
Create as brush that will paint a Min Hatch Pattern with the specified foreground color and a transparent background.
Declaration
public static PatternBrush Min(Color foreColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
Min(Color, Color)
Create as brush that will paint a Min Hatch Pattern with the specified colors
Declaration
public static PatternBrush Min(Color foreColor, Color backColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Color | backColor | Color of the background. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
Percent10(Color)
Create as brush that will paint a Percent10 Hatch Pattern with the specified colors
Declaration
public static PatternBrush Percent10(Color foreColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
Percent10(Color, Color)
Create as brush that will paint a Percent10 Hatch Pattern with the specified colors
Declaration
public static PatternBrush Percent10(Color foreColor, Color backColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Color | backColor | Color of the background. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
Percent20(Color)
Create as brush that will paint a Percent20 Hatch Pattern with the specified foreground color and a transparent background.
Declaration
public static PatternBrush Percent20(Color foreColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
Percent20(Color, Color)
Create as brush that will paint a Percent20 Hatch Pattern with the specified colors
Declaration
public static PatternBrush Percent20(Color foreColor, Color backColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Color | backColor | Color of the background. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
Solid(Color)
Create as brush that will paint a solid color
Declaration
public static SolidBrush Solid(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
Returns
Type | Description |
---|---|
SolidBrush | A new PatternBrush |
Vertical(Color)
Create as brush that will paint a Vertical Hatch Pattern with the specified foreground color and a transparent background.
Declaration
public static PatternBrush Vertical(Color foreColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |
Vertical(Color, Color)
Create as brush that will paint a Vertical Hatch Pattern with the specified colors
Declaration
public static PatternBrush Vertical(Color foreColor, Color backColor)
Parameters
Type | Name | Description |
---|---|---|
Color | foreColor | Color of the foreground. |
Color | backColor | Color of the background. |
Returns
Type | Description |
---|---|
PatternBrush | A new PatternBrush |