erm..
correct me if i am wrong
open new doc, 2px by 1px
paint half of it black
go edit,save as pattern
then in the pic u wanna apply the lines
create new layer
then use paint bucket
select fill with pattern(then choose the new one u did)
shd be like that
sorry if i m not clear