[lazarus] problem with canvas.pie

Manuel Pérez López manuel.perez.lopez at hispalinux.es
Tue Jul 8 17:51:00 EDT 2003


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.


Any idea?


I'm working with Lazarus from CVS (20030708) and preFPC1.08, Linux SO.

Saludos
Manuel Pérez López
manuel.perez.lopez at hispalinux.es






More information about the Lazarus mailing list