This page shows how to draw an image as a 'line' between two points using the HTML 5 canvas.

Click to set the start point; move the mouse to set the end point.

Line Width: