简体   繁体   English

GDI +:计算与曲线的交点

[英]GDI+: Calculate intersection with curve

I've got an array of Point-objects and draw a curve using 我有一个点对象数组,并使用绘制一条曲线

graphics.Draw(pen, points);

What I know need is to somehow calculate the intersection of a line with the drawn curve. 我知道需要以某种方式计算一条线与绘制曲线的交点。 Is there any way to do that with GDI+? 使用GDI +有什么办法吗? I couldn't find a function or class. 我找不到函数或类。

Thx, Steven 史蒂文(Thx)

GDI+ does not contain any geometrical functions that I'm aware of. GDI +不包含我所知道的任何几何函数。 It is a pure rendering API. 它是一个纯渲染API。 You need to handle all the geometrical processing using another library, or write your own such functions. 您需要使用另一个库来处理所有几何处理,或者编写自己的此类函数。 Intersecting a line with another line is fairly simple. 将一条线与另一条线相交非常简单。 Intersecting a line with a number of lines is a trivial extension of that (loop over the lines). 将一条线与多条线相交是该线的重要扩展(在这些线上循环)。 Let me know if you need pointers to examples. 让我知道您是否需要示例的指针。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM