且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在图像中画一条线

更新时间:2022-10-17 21:57:13

Google是你的朋友 [ ^ ]。

顺便说一下,两点之间的距离,你知道吗,是:

 sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))


i need to draw a line between two ponits in an image by mouse click between two points..Then i want to calculate the distance between two points. how is it possible.. if anyone has any idea pls help me...



Aswathi Narayan

Google is your friend[^].
By the way, distance between two points, you know, is:
sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))