DrawCurve Points Extaction或GMAP.net曲线绘图用其他词(样条曲线)C# [英] DrawCurve Points Extaction Or GMAP.net Curve drawing In Other Words (Spline) C#

查看:58
本文介绍了DrawCurve Points Extaction或GMAP.net曲线绘图用其他词(样条曲线)C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在GMAP控件上使用graphics.drawcurve曲线淹没,我想提取曲线中包含的所有点,例如point1(10,10),point2(20,20) ),points =(point1,point2)graphics.drawcurve(笔,点,比例)。我想提取一个(11,11),(12,12),(13,13)
...的列表我不需要使用slop,因为它不是一条线,它是一个曲线(样条)。有什么办法吗?



或者相反,无论如何我可以在GMAP控件上绘制曲线?已有drawpath和drawpoligon。



我使用c#windows forms 2017编程



非常感谢提前

解决方案


将曲线添加到GraphicsPath(可能会展平它)并迭代它的PathPoints,或者,如果你需要一个固定的步骤(例如:t从0到1,步长为1000步),从Bezier Segments重建曲线并从中得到所有点。


问候,


 的Thorsten


I have curve drown using graphics.drawcurve on GMAP control, i want to extract all points included in the curve, for example point1(10,10), point2(20,20) ,points=(point1,point2) graphics.drawcurve(pen,points,ratio). i want to extract a list of (11,11),(12,12),(13,13) ... i don't need to use the slop since it is not a line , it is a curve(Spline). is there any way ?

or instead is there anyway that i can draw a curve on a GMAP control ? there is already drawpath and drawpoligon.

i'am programming using c# windows forms 2017

Many Thanks in Advance

解决方案

Hi,

add the curve to a GraphicsPath (maybe flatten it) and iterate its PathPoints, or, if you need a fixed step (eg.: t from 0 to 1 with 1000 steps), re-build the curve from Bezier Segments and get all the points from these.

Regards,

  Thorsten


这篇关于DrawCurve Points Extaction或GMAP.net曲线绘图用其他词(样条曲线)C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆