[lazarus] TCanvas.Ellipse

Tony Maro TonyM at nlisc.com
Tue Oct 8 00:06:51 EDT 2002

How is TCanvas.Ellipse supposed to function?  I would have assumed top, left width, height are the params.  In fact I think that's the way it functioned in Delphi.

Unfortunately that draws an ellipse in the lower right corner of that bounding box.  To get one to draw properly at 0,0 with a width of 100 and a height of 100 I had to use:

.Ellipse(-100,-100,100,100);// places center at 50,50 with a radius of 50

Does that make any sense?


More information about the Lazarus mailing list