---
title: "Pen Constructor (RgbColor, Single)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Drawing_Pen_ctor_2_609fe771.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Pen Constructor (RgbColor, Single)
 
Constructs new [Pen](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_Pen.htm.md) class instance. Such main pen settings of pen as width and color can be specified here.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _color As RgbColor, _width As Single _
)
```
 
```csharp
public Pen(RgbColor color,float width
)
```
 
### Parameters
 
 - color
     - Type: [Aurigma.GraphicsMill.RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md)
Color of the pen. You can change this value later through property [Color](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Drawing_Pen_Color.htm.md).

 - width
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Width of the pen. You can change this value later through property [Width](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Drawing_Pen_Width.htm.md).
   
## See Also

### Reference

- [Pen Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_Pen.htm.md)
- [Pen Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Drawing_Pen_ctor.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
