Original Post
🔒 Locked
Brezenham
Advertisement
I think you really mean Bresenham.
If you draw a line from a to b on graph paper you''ll notice that the line will pass over points on the grid that arn''t whole numbers (10.5 or 8.75) When you plot a pixel it has to be a whole number ( 10 or 8) Besenham''s algorithm finds the closest pixel to the desired position. Above, below, left or right and plots it there.
Hope that helped.
Mark
If you draw a line from a to b on graph paper you''ll notice that the line will pass over points on the grid that arn''t whole numbers (10.5 or 8.75) When you plot a pixel it has to be a whole number ( 10 or 8) Besenham''s algorithm finds the closest pixel to the desired position. Above, below, left or right and plots it there.
Hope that helped.
Mark
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement