VC++中Arc()函数怎么绘制弧线的,原理?我是个新手,我利用Arc()函数绘制弧线,无论起点和终点在哪儿,绘制的弧线只取决于矩形大小,这是怎么回事?能告诉我Arc()绘制弧线的原理吗?

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 08:40:45

VC++中Arc()函数怎么绘制弧线的,原理?我是个新手,我利用Arc()函数绘制弧线,无论起点和终点在哪儿,绘制的弧线只取决于矩形大小,这是怎么回事?能告诉我Arc()绘制弧线的原理吗?
VC++中Arc()函数怎么绘制弧线的,原理?
我是个新手,我利用Arc()函数绘制弧线,无论起点和终点在哪儿,绘制的弧线只取决于矩形大小,这是怎么回事?能告诉我Arc()绘制弧线的原理吗?

VC++中Arc()函数怎么绘制弧线的,原理?我是个新手,我利用Arc()函数绘制弧线,无论起点和终点在哪儿,绘制的弧线只取决于矩形大小,这是怎么回事?能告诉我Arc()绘制弧线的原理吗?
BOOL Arc(
__in HDC hdc,
__in int nLeftRect,
__in int nTopRect,
__in int nRightRect,
__in int nBottomRect,
__in int nXStartArc,
__in int nYStartArc,
__in int nXEndArc,
__in int nYEndArc
);
Parameters
hdc [in]
A handle to the device context where drawing takes place.
nLeftRect [in]
The x-coordinate,in logical units,of the upper-left corner of the bounding rectangle.
nTopRect [in]
The y-coordinate,in logical units,of the upper-left corner of the bounding rectangle.
nRightRect [in]
The x-coordinate,in logical units,of the lower-right corner of the bounding rectangle.
nBottomRect [in]
The y-coordinate,in logical units,of the lower-right corner of the bounding rectangle.
nXStartArc [in]
The x-coordinate,in logical units,of the ending point of the radial line defining the starting point of the arc.
nYStartArc [in]
The y-coordinate,in logical units,of the ending point of the radial line defining the starting point of the arc.
nXEndArc [in]
The x-coordinate,in logical units,of the ending point of the radial line defining the ending point of the arc.
nYEndArc [in]
The y-coordinate,in logical units,of the ending point of the radial line defining the ending point of the arc.