Locating Pixels with Bresenham's line algorithm

  • Thread starter armin11
  • Start date
  • #1
66
0
hi,I wanted to locate the pixels of a line drawn from (0,0) to (-4,-8) with bresenham's algorithm.I couldn't find a suitable algorithm for finding these pixel locations.Can anyone help me please?(the algorithm can be without computer and work by hand)
 

Answers and Replies

  • #3
66
0
I've searched so much and tried every algorithm they have written ,but they don't work.can anybody help plz?
 
  • #4
298
2
This smells like a homework question... In which case you're in the wrong forum.

Also not a hard one. The wiki has full (and rather simple) pseudocode for Bresenham's. Can you really not turn that into working code? That's all you need to do.
 

Related Threads on Locating Pixels with Bresenham's line algorithm

Replies
6
Views
819
  • Last Post
Replies
3
Views
3K
  • Last Post
Replies
12
Views
875
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
2
Views
5K
  • Last Post
Replies
3
Views
2K
Replies
4
Views
792
Replies
8
Views
1K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
2
Views
6K
Top