How to smooth edges of rotated image?

Hello,
How to smooth edges of rotated image?

pseudo code:
ofPushMatrix(); ofTranslate(x,y); ofRotate(angle); img.draw(0, 0); ofPopMatrix();
This is what I get:

Unfortunately anti-aliasing, which is normally what you would want, only works on lines not filled polygons. You could draw a smoothed line (default behavior) around the edges and that might solve your issue.

This is pretty old, and so some of it may be out of date, but it looks worth checking out: https://sites.google.com/site/ofauckland/examples/smoothing-edges-anti-aliasing

Hi @wmjohnson,
Thank you for being helpful. I will give a try.