---
title: "Pen..::.Color Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Drawing_Pen_Color.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.Color Property 
 
Gets/sets pen color.
 
**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 Property Color As RgbColor
```
 
```csharp
public RgbColor Color { get; set; }
```
 
### Property Value
 [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) value which is used to draw and outline with this pen.
 
## Remarks
 Classic GDI does not handle transparency, so it makes no sense to specify alpha channel for this color. 
**Note**
For the same reason it is not recommended to draw with GDI on the images with 32-bit ARGB pixel format. It will fill alpha channel (which is treated with GDI as meaningless) with zeros. From the other hand you can use it to emulate eraser tool functionality.

Default pen color is black.
   
## See Also

### Reference

- [Pen Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_Pen.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
