开发者

Drawing.Graphics Line intersection add color in c#

I'm actually developing a 2d graphic application that consist on drawing lines based on a specific hardware readings.

Actually, using System.Drawing.Graphics.DrawLine i'm able to draw the lines (this is the easy part).

But开发者_如何学Go also, I need the intersection between two lines (the common pixel in both lines) to be identified, and also to be painted in other color than the line.

I've been trying with regions and graphicpaths, but I can't find the way to identify the common pixel (insersection) between two lines.

Can anybody help me?

Thank you, regards.


calculate the intersection between two lines

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜