Please help me to draw line by copying the pixels from a picture(Bresenham Algorithm)

Printable View

- 04-07-2009, 07:47 AMAlex jJava2D
Please help me to draw line by copying the pixels from a picture(Bresenham Algorithm)

- 04-07-2009, 04:59 PMCJSLMANGoogle is your friend
OK... I'll bite. Since I don't have a clue as to what a Bresenham Algorithm is, I googled it. The first hit was wikipedia, which gives a very good explanation what the Bresenham Algorithm is. It even has a a couple of C++ examples, which could be easily ported to Java. Then I googled "java Bresenham Algorithm" and the very first hit had plenty of java examples.

Morale of this story? If nobody else answers, google it.

Luck,

CJSL