GreycLab / CImg

The CImg Library is a small and open-source C++ toolkit for image processing
http://cimg.eu
Other
1.48k stars 282 forks source link

Draw anti-aliased / smooth lines #373

Open thomasreiser opened 1 year ago

thomasreiser commented 1 year ago

Is there a way to draw anti-aliased / smooth lines?

dtschump commented 1 year ago

No, but the Xiaolin Wu's anti-aliased line algorithm is trivial to implement with CImg, and it is giving quite good results. I've not done it in CImg, but for my other project G'MIC, and it looks OK.

gmic_line_aa