已知圆心和起始点坐标如何画弧

isabel1169 2009-11-23 08:42:01
已知圆心和起始点坐标并且沿逆时针方向如何画出圆弧
...全文
155 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
BOOL Arc( LPCRECT lpRect, POINT ptStart, POINT ptEnd );
lpRect

Specifies the bounding rectangle (in logical units). You can pass either an LPRECT or a CRect object for this parameter.

ptStart

Specifies the x- and y-coordinates of the point that defines the arc’s starting point (in logical units). This point does not have to lie exactly on the arc. You can pass either a POINT structure or a CPoint object for this parameter.

ptEnd

Specifies the x- and y-coordinates of the point that defines the arc’s ending point (in logical units). This point does not have to lie exactly on the arc. You can pass either a POINT structure or a CPoint object for this parameter.

这个可以
zoulie 2009-11-23
  • 打赏
  • 举报
回复
BOOL Arc(
HDC hdc, // handle to device context
int nLeftRect, // x-coord of bounding rectangle's upper-left corner
int nTopRect, // y-coord of bounding rectangle's upper-left corner
int nRightRect, // x-coord of bounding rectangle's lower-right corner
int nBottomRect, // y-coord 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
);

Parameters
hdc
Handle to the device context where drawing takes place.
nLeftRect
Specifies the logical x-coordinate of the upper-left corner of the bounding rectangle.
Windows 95 and Windows 98: The sum of nLeftRect plus nRightRect must be less than 32768.

nTopRect
Specifies the logical y-coordinate of the upper-left corner of the bounding rectangle.
Windows 95 and Windows 98: The sum of nTopRect plus nBottomRect must be less than 32768.

nRightRect
Specifies the logical x-coordinate of the lower-right corner of the bounding rectangle.
Windows 95 and Windows 98: The sum of nLeftRect plus nRightRect must be less than 32768.

nBottomRect
Specifies the logical y-coordinate of the lower-right corner of the bounding rectangle.
Windows 95 and Windows 98: The sum of nTopRect plus nBottomRect must be less than 32768.

nXStartArc
Specifies the logical x-coordinate of the ending point of the radial line defining the starting point of the arc.
nYStartArc
Specifies the logical y-coordinate of the ending point of the radial line defining the starting point of the arc.
nXEndArc
Specifies the logical x-coordinate of the ending point of the radial line defining the ending point of the arc.
nYEndArc
Specifies the logical y-coordinate of the ending point of the radial line defining the ending point of the arc.
fandh 2009-11-23
  • 打赏
  • 举报
回复
好像CDC的Arc就可以吧!

19,468

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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