wxGraphicsContext and wxDC ?

Stefan Csomor csomor at advancedconcepts.ch
Tue May 29 07:08:44 PDT 2007


Hi

> Hi,
> maybe i won't have a response but as it seems that there is some new
> classes i'm just wondering what are the goals/advantages of
> wxGraphicsContext compare to wxDC ? as there is no sample...

wxPython has an advantage there ;-) as there is already a sample there

the goal is to have a graphics API that is closer to the modern graphics engines like quartz, gdi+ and cairo, that allow to support their richness and capabilities.

It also is important to expose some of their objects like matrices, paths etc as separate objects, that can be stored for later reuse, so that performance does not suffer from on-the-fly conversions. As a compatibility dc there is the wxGCDC (GraphicsContextDC) in dcgraph.h that allows to use the old dc API on a new graphics context.

Best,

Stefan




More information about the wx-users mailing list