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
| Improve this Doc 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 |