How draw primitives with antialias in offscreen context?

Hello. Need draw some graph primitives like lines and circles in offscreen context with antialiasing. does anybody know, is it real to do and how? if not, where i can take source of antialias drawing? thanks

The general primitives should be easy to draw, the antialiasing i am not sure off. Worst case you would have to do this yourself :slight_smile: