Tim Ansell wrote: > Which platform are you running on? I've been testing on OS-X, which, it turns out is now using Apple's Core Graphics, which includes anti-aliasing (and, I assume sub-pixel accuracy, which should help alignment.
>I seem to be getting more alignment issues with your code. More than me, or more than you were before? It's hard to imagine how you could get more than before, as my code makes sure that two "slices" that are supposed to be sharing a point actually share that point. > Here is a screenshot of the current pie chart (Screenshot.png) and the > previous code (Screenshot.png). > > Is this what you are seeing? It does look better on OS-X, but still not perfect -- screenshot enclosed. I guess I really need to start working on GraphicsContext! I wonder if using DC.DrawEllipticArc would work better -- it that case, you are specifying the circle itself, rather than points on it, so maybe things would line up better. Now that I look at it, the code should be cleaner too -- you don't need to calculate StartXY and EndXY -- you can just pass in the angles. Another kludge would be to at least render the outside circle as a circle, so that you'd clean up the edges with a single line -- if you wanted the pie outlined anyway. Can you give these a try? I should be working on other things today. -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
