Not working. I created a new layer with same dimensions as original image. I defined the new layer as you described.
However it does not give the appearance of an overlay, so you are effectively drawing a line on the original image, which turns out to be fully opaque.