Pergunta de entrevista da empresa Google

Given you have a 2D binary raster represented as a bit array, how would you render a horizontal line?