It it is also expensive to broadcast information to the processors. Discuss the pros and cons of the approach you chose. Suppose we have two lines, one where columns are replicated and one where rows are replicated. If these two lines meet at a vertex, there will be a gap in the thick line at that vertex. In the example above, two pixels are filled in on top of or to the right of the pixel selected by the midpointLine algorithm, but only one pixel is filled in on the bottom or left.
Intensity varies with angle.
This is due to the fact that the number of pixels highlighted for a line depends only on the number of rows or columns spanned by that line, regardless of line angle or line length. For example, a line of fixed length will span a varying number of rows or columns depending on its angle. This will cause its intensity to vary by angle. Dashed lines will have dashes of different lengths at different line angles. This is due to the fact that the dashes are turned on and off based on the number of columns or rows traversed by the midpointLine algorithm, instead of based on the length of the line.