# Sandbox.Bitmap.SetPen

```csharp
void SetPen(Color color, float width)
```

Sets the pen for drawing with a solid color and stroke style.

### Parameters

- `color` (`Color`): The color of the pen.
- `width` (`float`): The width of the pen in pixels.

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
