Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want to find the bresenham drawline

Status
Not open for further replies.

theraccoon

Programmer
May 6, 2011
5
GR
Hi everyone,
I have a project to find the bresenham method for drawing a line, but I can't find one working. The last one I found, is this: (the last one).
But here, putpixel isn't implemented and so I erase it and the programm doesn't give results. What should I do?
And one more thing, how do I call the line method in a main method? I am new to java, so I don't know, I have tried several variables, for start for example line(w1,w2,z1,z2,colour); or line(x,y,x2,y2,color) and at last I have tried to put numbers in it, and it worked(it was compiled) but it didn't give any results.
I hope someone helps me, I 'm desperate!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top