Re: Re: DrawEllipticArc shows lines to arc ends when drawing to wx.SVGFileDC
Chris Barker <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <CALGmxEK3bHGZ=veTzFd_mNZBML1is4PmGmZU+TFwKEcu_hLP4g@mail.gmail.com> |
The trick of wx is that it wraps the native toolkits -- whch means there WILL be differences inhow things are drawn. If you really need it to be identical, you may need to use some other libary to draw, and jsut dump tehimage to the srceen with wx. Options are: Agg -- awsome anti-aliasing graphics lib -- used by MAtplotlib amng others. I don't know of a good stand alone wrapper, but you can access the drawing stuff from MPL, and there is an AggDRaw or somethig with PIL (PIllow) Kiva: http://code.enthought.com/projects/files/ETS3_API/enthought.kiva.html uses Agg on teh back-end -- not sure how easy it is to get it/use it outside the Enthought Tool Suite. Cairo: drawing lib behind GTK -- but I think it runs on all platfroms and can work with wx: https://wxpython.org/docs/api/wx.lib.wxcairo-module.html libgd: "Old fashioned" C lig for rendering -- ued in PHP and lots of othe rolder projects. I wrote Pythonwrapper here: https://github.com/NOAA-ORR-ERD/py_gd/blob/master/README.md not full featured (only 8bit aliased drawing for now) but nice Pythonic interface. And written with Cython, so pretty easy to add features, if libgd itself has them. -CHB On Fri, Jun 24, 2016 at 4:46 PM, ABC <[email protected]> wrote: > More details... > > I'm using: > Python 2.7.11 > WxPython 3.0.2.0 > > Here's what it looks like when drawing 2 90 degrees elliptical arcs through > - wx.BufferedDC (png file), and > - wx.SVGFileDC (svg file). > > -- > You received this message because you are subscribed to the Google Groups > "wxPython-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [email protected] -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.