How to determine points along a GDI+ path

659 views Asked by At

Does GDI+ (System.Drawing.Graphics in .NET) offer some method to determine points on a graphics path?

Specifically, I'm hoping to find an easy way to write the following function:

 Point positionAt(GraphicsPath path, Single where)

with where a number between 0 and 1 specifying how far to travel along the path.

1

There are 1 answers

2
Pedery On

Try the GraphicsPath.GetPathData method:

http://msdn.microsoft.com/en-us/library/ms535534(v=vs.85).aspx