[lazarus] problem with canvas.pie

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Aug 18 15:25:48 EDT 2003

On Wed, 9 Jul 2003 00:18:36 +0200
Manuel Pérez López <manuel.perez.lopez at hispalinux.es> wrote:

> Hello:
> I do not know if there is a bug in Lazarus or FPC. it's about the method
> Pie.
> Delphi definition:
> The method Pie draws a section of an ellipse,   limited by the rectangle
> (X1, Y1) and (X2, Y2) on   the indication surface.  The drawn section is  
> determined by two lines, which outgoing from the   center of the ellipse
> by the points (X3, Y3) and (X4,   Y4) to lead.
> I did not find the FreePascal definition of a method Pie, and I suppose
> that it is the same.
> But, this does not work properly. It draws a fool pie. Example:
> PaintBox1.Canvas.Pie( 200,200,400,400,400,300,300,200);
> does not draw the correct 1/4 circle.



More information about the Lazarus mailing list