I am making a comic-book annotation program. The user needs to be able to draw arrows on top of a jpeg. Using the line command is useless, since it makes ugly jagged lines. I need a good antialiased line like the one that is drawn in Photoshop.

something like aa_line(20,100,50,150)
should draw aline from x20y100 to x50y150