Class Pens
Contains a collection of common Pen styles
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class Pens
Methods
| Improve this Doc View SourceDash(Color, Single)
Create a pen with a 'Dash' drawing patterns
Declaration
public static Pen Dash(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
Single | width | The width. |
Returns
Type | Description |
---|---|
Pen | The Pen |
Dash(IBrush, Single)
Create a pen with a 'Dash' drawing patterns
Declaration
public static Pen Dash(IBrush brush, float width)
Parameters
Type | Name | Description |
---|---|---|
IBrush | brush | The brush. |
Single | width | The width. |
Returns
Type | Description |
---|---|
Pen | The Pen |
DashDot(Color, Single)
Create a pen with a 'Dash Dot' drawing patterns
Declaration
public static Pen DashDot(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
Single | width | The width. |
Returns
Type | Description |
---|---|
Pen | The Pen |
DashDot(IBrush, Single)
Create a pen with a 'Dash Dot' drawing patterns
Declaration
public static Pen DashDot(IBrush brush, float width)
Parameters
Type | Name | Description |
---|---|---|
IBrush | brush | The brush. |
Single | width | The width. |
Returns
Type | Description |
---|---|
Pen | The Pen |
DashDotDot(Color, Single)
Create a pen with a 'Dash Dot Dot' drawing patterns
Declaration
public static Pen DashDotDot(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
Single | width | The width. |
Returns
Type | Description |
---|---|
Pen | The Pen |
DashDotDot(IBrush, Single)
Create a pen with a 'Dash Dot Dot' drawing patterns
Declaration
public static Pen DashDotDot(IBrush brush, float width)
Parameters
Type | Name | Description |
---|---|---|
IBrush | brush | The brush. |
Single | width | The width. |
Returns
Type | Description |
---|---|
Pen | The Pen |
Dot(Color, Single)
Create a pen with a 'Dot' drawing patterns
Declaration
public static Pen Dot(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
Single | width | The width. |
Returns
Type | Description |
---|---|
Pen | The Pen |
Dot(IBrush, Single)
Create a pen with a 'Dot' drawing patterns
Declaration
public static Pen Dot(IBrush brush, float width)
Parameters
Type | Name | Description |
---|---|---|
IBrush | brush | The brush. |
Single | width | The width. |
Returns
Type | Description |
---|---|
Pen | The Pen |
Solid(Color, Single)
Create a solid pen with out any drawing patterns
Declaration
public static Pen Solid(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
Single | width | The width. |
Returns
Type | Description |
---|---|
Pen | The Pen |
Solid(IBrush, Single)
Create a solid pen with out any drawing patterns
Declaration
public static Pen Solid(IBrush brush, float width)
Parameters
Type | Name | Description |
---|---|---|
IBrush | brush | The brush. |
Single | width | The width. |
Returns
Type | Description |
---|---|
Pen | The Pen |