I am drawing an arc to a GraphicsPath object using code similar to this:
path.AddArc(r, 270,90);
As expected, when I render this GraphicsPath object to the screen I get an arc that looks like this:

What I want to be able to do is add another arc just inside this one, as well as lines to complete a single figure. When rendered it would look like this:

Basically, another arc rendered inside the first, of some thickness/offset, and then have the endpoints connected via a line to form a single figure. I'm sure this can't be as difficult as I am making it, but I sure can't find any example of people doing this before. Thanks,
Todd
Muhammad Bilal JackPosted Oct 27, 2025, 7:28 PM
Good question to theVip Youcine suggests using SVG paths with shared endpoints to connect the two arcs.
Muhammad Bilal JackPosted Oct 27, 2025, 7:26 PM
Good question to the Vip Youcinesuggests using SVG paths with shared endpoints to connect the two arcs.
Sandhiya PriyaPosted Oct 27, 2025, 9:14 AM
you’re exactly right: this is actually a common graphics geometry problem in GDI+ (System.Drawing) — you want to draw a thick, ring-like arc (essentially a sector of a donut).
Let’s walk through how to do this step-by-step.
Goal
You have something like:
Now you want:
Another arc inside (smaller radius).
Lines at the endpoints connecting the outer and inner arcs.
A single closed shape (so you can fill it or outline it).
1. Core Concept
To create that ring-like shape, you:
Define two rectangles:
outerRectfor the outer arc.innerRectfor the inner arc, slightly smaller.Add the outer arc (clockwise).
Add the inner arc (counter-clockwise).
Close the figure (to connect endpoints).
2. Working Example
Here’s a complete snippet:
Explanation
Variations
To create a different thickness, adjust
offset.To create multiple ring segments, just repeat with different start/sweep angles.
You can use
GraphicsPath.AddPie()if you want the inner radius = 0 (a wedge).Bonus Tip: Draw “bordered arcs” easily
If you only need an outline, not a filled area:
But that gives you a stroked path (not a filled band).
The method above (two arcs + fill) gives full shape control.