简体   繁体   中英

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 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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