ASP.NET - How to detect coordinates in image control and draw polygon on it?

Asked By picibel ooi on 28-Aug-13 04:33 AM
I have an image control with image loaded.
I need to detect the mouseclick position on the image. Each time two coordinates position will be needed.
The mouseclick will get two positions depends the area which needs to be obtained.
Kindly please refer to my attachment picture.
If let's say the area at the attached picture is needed.
Mouseclick will position one at a top left of the area and one at the bottom right. Once these two coordinates are obtained, a rectangle shape will be drawn on the image to indicate the area.
How can this be done?

Robbe Morris replied to picibel ooi on 28-Aug-13 07:24 AM