Currently, TCanvas.RadialPie function takes parameters StartAngle and EndAngle,
documented as starting and ending angles of a circle segment to draw.

However, it actually draws a segment from StartAngle to StartAngle + EndAngle.

Is it a bug in code or documentation?

I tried to look at the history of Pie/RadialPie/RadialPileWithAngles code,
but it is rather messy, in particular confusing comments mentioning
both "angle1, angle2" and "Angle,AngleLength" were introduced
together with the very first incarnation of Pie method.

Additional complication is TPostScriptPrinterCanvas, which translates
RadialPie directly into PostScript 'arc' operator
(http://www.tailrecursive.org/postscript/operators.html#arc).

Lastly, docs\xml\interfacebase.xml and lclinf.xml contain some
totally different definitions of RadialPie's arguments.

All in all, it seems that nobody uses RadialPie, or they would immediately
notice this?

-- 
Alexander S. Klenin
_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to