MFC编程ellipse()怎么画圆
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/17 05:48:59
MFC编程ellipse()怎么画圆
如题,我用MFC想要在固定位置画个圆,要求用ellipse(),比如说左上角坐标是x1,y2,右下角坐标是x2,y2,请问代码该怎么写
如题,我用MFC想要在固定位置画个圆,要求用ellipse(),比如说左上角坐标是x1,y2,右下角坐标是x2,y2,请问代码该怎么写
CDC::Ellipse
BOOL Ellipse( int x1,int y1,int x2,int y2 );
BOOL Ellipse( LPCRECT lpRect );
Return Value
Nonzero if the function is successful; otherwise 0.
Parameters
x1
Specifies the logical x-coordinate of the upper-left corner of the ellipse’s bounding rectangle.
y1
Specifies the logical y-coordinate of the upper-left corner of the ellipse’s bounding rectangle.
x2
Specifies the logical x-coordinate of the lower-right corner of the ellipse’s bounding rectangle.
y2
Specifies the logical y-coordinate of the lower-right corner of the ellipse’s bounding rectangle.
lpRect
Specifies the ellipse’s bounding rectangle.You can also pass a CRect object for this
所以,直接使用pDC->Ellipse(x1,y1,x2,y2)就可以了.
前两个参数为左上角的坐标
后两个参数为右下角的坐标
BOOL Ellipse( int x1,int y1,int x2,int y2 );
BOOL Ellipse( LPCRECT lpRect );
Return Value
Nonzero if the function is successful; otherwise 0.
Parameters
x1
Specifies the logical x-coordinate of the upper-left corner of the ellipse’s bounding rectangle.
y1
Specifies the logical y-coordinate of the upper-left corner of the ellipse’s bounding rectangle.
x2
Specifies the logical x-coordinate of the lower-right corner of the ellipse’s bounding rectangle.
y2
Specifies the logical y-coordinate of the lower-right corner of the ellipse’s bounding rectangle.
lpRect
Specifies the ellipse’s bounding rectangle.You can also pass a CRect object for this
所以,直接使用pDC->Ellipse(x1,y1,x2,y2)就可以了.
前两个参数为左上角的坐标
后两个参数为右下角的坐标
MFC编程ellipse()怎么画圆
MFC中已经用pDC->Ellipse(CRect(100,100,400,400));画出一圆,怎么画其内接正方形?
MFC画图 画圆请问MFC中画一个圆,调用Ellipse函数,但我想把这个圆保存成一个对象或变量,之后对这个对象操作,比
VC++MFC画函数图
想用mfc做一个绘图系统,画圆直线矩形填充颜色和平移
急问 如何用MFC画椭圆
微观经济学中MR*MP=MFC MC*MP=MFC是怎么推出来的?
MFC中已知点的坐标,怎么实现动态画直线,主要是能显示出这个动态的过程
mfc 计算器中sin ,log ,和ln函数怎么写
MFC中怎么画出倾斜的椭圆?VC6.0
使用Ellipse()画椭圆时,怎么样使该椭圆上显示出数字呢?
vc++ mfc mfc activex controlwizard,mfc appwizard(dll),mfc ap