I am trying to draw a line on top of an image background - in an HTML5 Canvas .
However always the line gets drawn behind the image . Actually the line gets drawn first and
To be more efficient, assuming you are going to be doing multiple redraws of this line or lines, would be to set the CSS background-image of the canvas to be your image.