It doesn't get much simpler than this:
[quote:eakna3dq]<For each x>, Bresenham's algorithm chooses the integer y corresponding to the pixel center that is closest to the ideal (fractional) y for the same x; on successive columns y can remain the same or increase by 1.
Source: http://en.wikipedia.org/wiki/Bresenham's_line_algorithm