I am interested in finding an antialiasing algorithm which can be used on a line of any shape (not just straight lines).
I notice that Mathematica seems to have a very good algorithm and can draw fine lines 1 or 2 pixels wide. My current best effort algorithm generally requires more like 3 pixels so my lines are somewhat thicker than Mathematica's.
Does anybody know what algorithm Mathematica uses for antialiasing, or can recommend a high-quality algorithm that can be used to generate sub-2-pixel antialiased lines and curves?