画圆?
如何用delphi画圆??圆心半径没有限制 问题点数:20、回复次数:6Top
1 楼walterwl(弱智浩二)回复于 2003-07-02 14:13:56 得分 10
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填充Top
2 楼walterwl(弱智浩二)回复于 2003-07-02 14:14:26 得分 0
pwzhu666 (暴龙)
兄弟玩石器时代么?Top
3 楼pwzhu666(暴龙)回复于 2003-07-02 14:26:28 得分 0
如何通过圆心画圆,并等分成五份?Top
4 楼pwzhu666(暴龙)回复于 2003-07-02 14:27:20 得分 0
暗黑好玩Top
5 楼firetoucher(风焱)回复于 2003-07-02 14:34:29 得分 10
用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:同意搂主:)
Top
6 楼pwzhu666(暴龙)回复于 2003-07-02 14:37:38 得分 0
如何用,能否举个例子先?Top



