Click here to Skip to main content
15,076,130 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Updated 2-Jul-14 23:52pm
v2

1 solution

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900