Jamie Bullock wrote: > I am working on a subclass of floatcanvas Circle that supports alpha > transparency and anti-aliasing using a GC instead of a DC for the > _Draw() method. See: > > http://www.postlude.co.uk/incoming/AlphaCircleTest.py
Thanks for the note -- when you are happy with it, could you put that up on the Wiki? http://morticia.cs.dal.ca/FloatCanvas/ You can add a new page under "How To" > You will notice from this example that the same value for 'diameter' for > both an AlphaCircle and a standard FloatCanvas.Circle, results in the > AlphaCircle instance being twice the size of the Circle instance. > Obviously this can be rectified simply by simply scaling the diameter by > 0.5 in the AlphaCircle class definition. However, I'm just wondering if > this points to some underlying problem or mistake that I have made with > the code...? not a big one GraphicsPath.AddCircle() take a radius, not a diameter. The FloatCanvas.Circle class is a special case of an Ellipse, so it used DC.DrawEllipse, which requires a radius -- it maybe should use DC.DrawCircle instead, though. -Chris -- 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] _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
