|
![](/i/fill.gif) |
On 8/20/2011 4:11, Warp wrote:
> Drawing an accurate antialiased line (of certain width) is not a trivial
> problem. Basically for each pixel you need to calculate how much of it is
> covered by the line. Doing this accurately with integer math only can be
> complicated.
I am not sure you can do it accurately with integer math at all, given that
there's a "portion of a pixel" involved in there somewhere. At best you'd be
working in scaled fixed-point.
That said, the AA equivalent of bressenham is Wu:
https://secure.wikimedia.org/wikipedia/en/wiki/Xiaolin_Wu%27s_line_algorithm
--
Darren New, San Diego CA, USA (PST)
How come I never get only one kudo?
Post a reply to this message
|
![](/i/fill.gif) |