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
| Edit this page View SourceDash(Color, float)
Create a pen with a 'Dash' drawing patterns
Declaration
public static PatternPen Dash(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
float | width | The width. |
Returns
Type | Description |
---|---|
PatternPen | The Pen. |
Dash(Brush, float)
Create a pen with a 'Dash' drawing patterns
Declaration
public static PatternPen Dash(Brush brush, float width)
Parameters
Type | Name | Description |
---|---|---|
Brush | brush | The brush. |
float | width | The width. |
Returns
Type | Description |
---|---|
PatternPen | The Pen. |
DashDot(Color, float)
Create a pen with a 'Dash Dot' drawing patterns
Declaration
public static PatternPen DashDot(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
float | width | The width. |
Returns
Type | Description |
---|---|
PatternPen | The Pen. |
DashDot(Brush, float)
Create a pen with a 'Dash Dot' drawing patterns
Declaration
public static PatternPen DashDot(Brush brush, float width)
Parameters
Type | Name | Description |
---|---|---|
Brush | brush | The brush. |
float | width | The width. |
Returns
Type | Description |
---|---|
PatternPen | The Pen. |
DashDotDot(Color, float)
Create a pen with a 'Dash Dot Dot' drawing patterns
Declaration
public static PatternPen DashDotDot(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
float | width | The width. |
Returns
Type | Description |
---|---|
PatternPen | The Pen. |
DashDotDot(Brush, float)
Create a pen with a 'Dash Dot Dot' drawing patterns
Declaration
public static PatternPen DashDotDot(Brush brush, float width)
Parameters
Type | Name | Description |
---|---|---|
Brush | brush | The brush. |
float | width | The width. |
Returns
Type | Description |
---|---|
PatternPen | The Pen. |
Dot(Color, float)
Create a pen with a 'Dot' drawing patterns
Declaration
public static PatternPen Dot(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
float | width | The width. |
Returns
Type | Description |
---|---|
PatternPen | The Pen. |
Dot(Brush, float)
Create a pen with a 'Dot' drawing patterns
Declaration
public static PatternPen Dot(Brush brush, float width)
Parameters
Type | Name | Description |
---|---|---|
Brush | brush | The brush. |
float | width | The width. |
Returns
Type | Description |
---|---|
PatternPen | The Pen. |
Solid(Color)
Create a solid pen without any drawing patterns
Declaration
public static SolidPen Solid(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
Returns
Type | Description |
---|---|
SolidPen | The Pen. |
Solid(Color, float)
Create a solid pen without any drawing patterns
Declaration
public static SolidPen Solid(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
float | width | The width. |
Returns
Type | Description |
---|---|
SolidPen | The Pen. |
Solid(Brush)
Create a solid pen without any drawing patterns
Declaration
public static SolidPen Solid(Brush brush)
Parameters
Type | Name | Description |
---|---|---|
Brush | brush | The brush. |
Returns
Type | Description |
---|---|
SolidPen | The Pen. |
Solid(Brush, float)
Create a solid pen without any drawing patterns
Declaration
public static SolidPen Solid(Brush brush, float width)
Parameters
Type | Name | Description |
---|---|---|
Brush | brush | The brush. |
float | width | The width. |
Returns
Type | Description |
---|---|
SolidPen | The Pen. |