如何用delphi画圆??圆心半径没有限制

解决方案 »

  1.   

    Draws the ellipse defined by a bounding rectangle on the canvas. Delphi syntax:procedure Ellipse(X1, Y1, X2, Y2: Integer); overload;
    procedure Ellipse(const Rect: TRect); overload;
    x1,y1;x2,y2指椭圆所在外切矩形的左上角坐标和右下角坐标;
    Canvas.Brush.Style := bsClear;就只画圆的边界,否则圆的里面也被brush填充
      

  2.   

    pwzhu666 (暴龙) 
    兄弟玩石器时代么?
      

  3.   

    用Pie
    The Pie function draws a pie-shaped wedge bounded by the intersection of an ellipse and two radials. The pie is outlined by using the current pen and filled by using the current brush. BOOL Pie(
      HDC hdc,         // handle to DC
      int nLeftRect,   // x-coord of upper-left corner of rectangle
      int nTopRect,    // y-coord of upper-left corner of rectangle
      int nRightRect,  // x-coord of lower-right corner of rectangle
      int nBottomRect, // y-coord of lower-right corner of rectangle
      int nXRadial1,   // x-coord of first radial's endpoint
      int nYRadial1,   // y-coord of first radial's endpoint
      int nXRadial2,   // x-coord of second radial's endpoint
      int nYRadial2    // y-coord of second radial's endpoint
    );ps:同意搂主:)