Draw Line Function

Hi,

You should have a look to the Bresenham algorithm which is the fastest
(and not so hard to implement) for drawing line.
You can have a look on this web page:

I Hope it will help you…
Sebastien Dieu