请问Canvas的ARC(X1,Y1,X2,Y2,X3,Y3,X4,Y4:Integer)
中的X1,Y1,X2,Y2,X3,Y3,X4,Y4弧形中4个点到底是哪4个点,本人英语不行,
看下面的帮助文档有一点不懂,请详细讲一下好吗?
Delphi syntax:procedure Arc(X1, Y1, X2, Y2, X3, Y3, X4, Y4: Integer); overload;
procedure Arc(X, Y, W, H, Angle, AngleLength: Integer); overload;C++ syntax:void __fastcall Arc(int X1, int Y1, int X2, int Y2, int X3, int Y3, int X4, int Y4);
void __fastcall Arc(int X, int Y, int W, int H, int Angle, int AngleLength);DescriptionUse Arc to draw an elliptically curved line with the current Pen. 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. The starting point is defined by the intersection of the ellipse and a line defined by the center of the ellipse and (X3,Y3). The ending point is defined by the intersection of the ellipse and a line defined by the center of the ellipse and (X4, Y4).Use the second syntax to draw an arc defined by the rectangle (X,Y,W,H), the start angle Angle and the arc length AngleLength.
 The angles Angle and AngleLength are 1/16th of a degree. For example, a full circle equals 5760 (16*360). Positive values of Angle and AngleLength mean counterclockwise while negative values mean clockwise direction. Zero degrees is at the 3'o clock position.

解决方案 »

  1.   

    BOOL Arc(    HDC hdc, // handle to device context 
        int nLeftRect, // x-coordinate of bounding rectangle's upper-left corner 
        int nTopRect, // y-coordinate of bounding rectangle's upper-left corner  
        int nRightRect, // x-coordinate of bounding rectangle's lower-right corner   
        int nBottomRect, // y-coordinate of bounding rectangle's lower-right corner    
        int nXStartArc, // first radial ending point 
        int nYStartArc, // first radial ending point 
        int nXEndArc, // second radial ending point 
        int nYEndArc  // second radial ending point 
       );