GDI+(.NET 中的 System.Drawing.Graphics)是否提供了一些方法来确定图形路径上的点?
具体来说,我希望找到一种简单的方法来编写以下函数:
Point positionAt(GraphicsPath path, Single where)
用where
一个介于 0 和 1 之间的数字指定沿路径行进的距离。
GDI+(.NET 中的 System.Drawing.Graphics)是否提供了一些方法来确定图形路径上的点?
具体来说,我希望找到一种简单的方法来编写以下函数:
Point positionAt(GraphicsPath path, Single where)
用where
一个介于 0 和 1 之间的数字指定沿路径行进的距离。
试试 GraphicsPath.GetPathData 方法:
http://msdn.microsoft.com/en-us/library/ms535534(v=vs.85).aspx