In order to achieve the fast and accurate antialiasing line rendering, using the modified DDA and Wu straight line generation algorithm, a two-pixel anti-aliasing point-by-point rendering algorithm for straight lines using integer arithmetic was proposed. The algorithm calculates the coordinate position of the next pixel and its brightness level based on the midpoint error value. Theoretical analysis and experiments show that the new algorithm is simple and has good execution efficiency and anti-aliasing effect.
展开▼