# Sandbox.Bitmap.DrawArc

## Overload 1

```csharp
void DrawArc(Rect rect, float startAngle, float sweepAngle)
```

Draws an arc using the current pen settings.

### Parameters

- `rect` (`Rect`): The bounding rectangle of the arc.
- `startAngle` (`float`): The starting angle of the arc, in degrees.
- `sweepAngle` (`float`): The sweep angle of the arc, in degrees.

## Overload 2

```csharp
void DrawArc(Rect rect, float startAngle, float sweepAngle, bool useCenter)
```

Draws an arc using the current pen settings, with an option to connect to the center.

### Parameters

- `rect` (`Rect`): The bounding rectangle of the arc.
- `startAngle` (`float`): The starting angle of the arc, in degrees.
- `sweepAngle` (`float`): The sweep angle of the arc, in degrees.
- `useCenter` (`bool`): If true, connects the arc endpoints to the center point, forming a pie shape.

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
