Hi folks,
I'm trying to implement Brasenham's algorithm, I need to draw a line on a given coordinates (x1,y1,x2,y2). The problem is that when I try to do this in C# (GDI+) I have this function drawLine, but this draws the line itself.
I need to construct the line myself, point by point (pixel by pixel), can anyone show me on how to draw only one pixel at the time, not connect two point. I will need to draw the line recursively, one pixel at the time so in the end I end up with the complete line.
advice is welcomed in any language C#, Java, C++ ?
Thanx in prior