Click to See Complete Forum and Search --> : draw teh line


buffal
July 23rd, 2005, 02:46 PM
Can you tell me what is inside
line() or
lineto()?

Thanks

deesan
July 23rd, 2005, 03:12 PM
Classic algorithm for line drawing is Bresenham algorithm. Try to look in Google.

buffal
July 23rd, 2005, 03:44 PM
Thank you.

I just run into another problem wodering if i use my mouse to draw teh line, how can i which pixels are used to draw teh line ?

buffal
July 23rd, 2005, 03:46 PM
Btw, do you know any other algrithms that helps draw teh curve, circle eclipse smoother ?
Thanks too

andytim
August 17th, 2005, 12:30 AM
The following Flow/Diagram Source Code kit have all the features for drawing,printing and layout shapes on the canvas,maybe it will be useful for your application:
E-XD++,http://www.********.net :rolleyes:

For simple drawing application,you can also see drawcli within MSDN online.

Jack