CImg icon indicating copy to clipboard operation
CImg copied to clipboard

Draw anti-aliased / smooth lines

Open thomasreiser opened this issue 2 years ago • 1 comments

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

thomasreiser avatar Jan 16 '23 18:01 thomasreiser

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

dtschump avatar Jan 17 '23 10:01 dtschump