画圆?

pwzhu666 2003-07-02 01:59:59
如何用delphi画圆??圆心半径没有限制
...全文
204 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
pwzhu666 2003-07-02
  • 打赏
  • 举报
回复
如何用,能否举个例子先?
firetoucher 2003-07-02
  • 打赏
  • 举报
回复
用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:同意搂主:)
pwzhu666 2003-07-02
  • 打赏
  • 举报
回复
暗黑好玩
pwzhu666 2003-07-02
  • 打赏
  • 举报
回复
如何通过圆心画圆,并等分成五份?
walterwl 2003-07-02
  • 打赏
  • 举报
回复
pwzhu666 (暴龙)
兄弟玩石器时代么?
walterwl 2003-07-02
  • 打赏
  • 举报
回复
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填充

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧