reinierpost
reinierpost

Reputation: 8591

How to determine points along a GDI+ path

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.

Upvotes: 0

Views: 670

Answers (1)

Pedery
Pedery

Reputation: 3636

Try the GraphicsPath.GetPathData method:

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

Upvotes: 2

Related Questions