FlameDuck #1 Using linear interpolation and/or the bressenham line algorithm. (At work don't have example code - there are examples of both in the Code Archives however if I remember correctly).