开发者

Drawing.Graphics Line intersection add color in c#

开发者 https://www.devze.com 2022-12-17 23:59 出处:网络
I\'m actually developing a 2d graphic application that consist on drawing lines based on a specific hardware readings.

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

精彩评论

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