Draw anti-aliased lines with or without Bresenham Algorithm and draw curves.
Draw line: ./main x0 y0 x1 y1
((x0, y0), (x1, y1) are two points of a line, show with or without anti-aliasing simultaneously)
Draw Circle: ./main x0 y0 r
((x0, y0) is the center of the circle, r is its radius)
- Draw line(without anti-aliasing): ./main 10 20 200 100
- Draw line(with anti-aliasing, gaussian kernel):
- Draw line(with anti-aliasing, uniform kernel):
- Draw circle: ./main 50 50 20
Without anti-aliasing result line is jagged, after anti-aliasing it becomes smooth. The effect of gaussian kernel and uniform kernel is same. The size of kernel in the example is 3.
GUI is not completed and also some other advanced algorithms should be tried.