Prashant Saxena wrote: > I am sending you a personal mail because some information here is personal.
Actually, this is a general question about FloatCanvas, so it's fine for the wxPython list. I've cc'd this response to the list, and to the floatcanvas list. > FloatCanvas and anti aliasing. > Is it possible to draw smooth anti-aliased shapes? FloatCanvas was build on wxDCs, which do not anti-alias. However, you ca create your own DrawObjects that use wxGraphicsContext: http://morticia.cs.dal.ca/FloatCanvas/wiki/SmoothLines > FloatCanvas and zoom(how texts are handled). There are three text objects: Text: text at a fixed size, regardless of zoom. ScaledText: text with the size defined in World coords -- it gets bigger ans smaler with zoom. ScaledTextBox: multiline text in an (optional) box -- scales with zoom, and can wrap as well. > Point me out an example file for explaining this in here if any: > http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/FloatCanvas/ look at the main FloatCanvas Demo, and maybe: TextBox.py TextBox2.py VectPlot.py in the Demo dir. Plus there is a little bit of text used in many of the demos. However, things are a bit complicated now: There is a new FloatCanvas (FC2). It was written as a Google Summer of Code project this year, and can be found in SVN at: http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/branches/FloatCanvas/SOC2008_FloatCanvas/floatcanvas2/ This new version is built with wx.GraphicsContext from the start, and therefore supports anti-aliasing, alpha blending, and more complex paths. It is also built on a powerful and flexible MVC framework. However, it's brand new, so not as mature and has a few missing features (I think it has only scalable text, and no TextBox, for instance). It may be a good way to go for a new project, though. You can get help with either version on the floatcanvas mailing list: http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas Look through that lists archives for more info. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
