Anti-aliased graphics - recommendations?

Ole Nielsby ole.nielsby at tekare-you-spamminglogisk.dk
Mon Sep 17 19:58:52 PDT 2007


Robin Dunn <robin at alldunn.com> wrote:
>
> Ole Nielsby wrote:
>> I'm trying to find out what's the best way to paint diagrams with
>> anti-aliasing, and I seem to have lost my way.
>
> Have you looked at the new Graphics Context family of classes in wx? One 
> of the wxPython users used it to create a SVG renderer.

Thanks - I hadn't noticed those... not as smooth-looking as the AGG
samples but definitely better than using the wxPaintDC directly, and
sufficient for my needs.

My paint handler now creates a dummy wxPaintDC, and then passes
the window to wxGraphicsContext::Create.

Is this the drill? Works ok on win XP but who knows...

(It might be a good idea to insert a reference to wxGraphicsContext
in the wxPaintEvent docs.)








More information about the wx-users mailing list