<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18999">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>The problem came in with the
interpreation</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV>
<DIV>DELPHI The arc traverses the perimeter of an ellipse that is bounded by the
points (X1,Y1) and (X2,Y2). The arc is drawn following the perimeter of the
ellipse, counterclockwise, from the starting point to the ending point.</DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Is the arc or the ellipse bounded by (X1Y1)
(X2Y2)? </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>It is actually the ellipse.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The solution is quite simple. (With the help
of Jolyon - Thanks )</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>
xCtr:=DM.tblOperX1.AsFloat;<BR>
yCtr:=DM.tblOperY1.AsFloat;<BR>
if (dm.tblOper['CW']=False) then
begin<BR>
xStart:=DM.tblOperX2.AsFloat;<BR>
yStart:=DM.tblOperY2.AsFloat;<BR>
xEnd:=DM.tblOperX3.AsFloat;<BR>
yEnd:=DM.tblOperY3.AsFloat;<BR>
end<BR> else
begin<BR>
xStart:=DM.tblOperX3.AsFloat; //Swop start and end
<BR>
yStart:=DM.tblOperY3.AsFloat;<BR>
xEnd:=DM.tblOperX2.AsFloat;<BR>
yEnd:=DM.tblOperY2.AsFloat;<BR>
end;<BR>
rad:=sqrt(sqr(xStart-xCtr)+sqr(yStart-yCtr));<BR>
TopRH:=round((yCtr+rad)*Scale)+Hoffset;<BR>
TopRV:=round((xCtr-rad)*Scale)+Voffset;<BR>
BotLH:=round((yCtr-rad)*Scale)+Hoffset;<BR>
BotLV:=round((xCtr+rad)*Scale)+Voffset;<BR>
StartH:=round(yStart*Scale)+Hoffset;<BR>
StartV:=round(xStart*Scale)+Voffset;<BR>
EndH:=round(yEnd*Scale)+Hoffset;<BR>
EndV:=round(xEnd*Scale)+Voffset;<BR>
fDraw.Canvas.Arc(TopRH,TopRV,BotLH,BotLV,StartH,StartV,EndH,EndV);</FONT></DIV><FONT
size=2 face=Arial></FONT></DIV>
<DIV><FONT size=2 face=Arial>
<DIV><BR></DIV></FONT></DIV></BODY></HTML>