用mfc画圆时 pDC->Ellipse(0,25,37,46) 里面的参数各代表什么意思啊

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/15 18:37:45
用mfc画圆时 pDC->Ellipse(0,25,37,46) 里面的参数各代表什么意思啊

用mfc画圆时 pDC->Ellipse(0,25,37,46) 里面的参数各代表什么意思啊
用mfc画圆时 pDC->Ellipse(0,25,37,46) 里面的参数各代表什么意思啊

用mfc画圆时 pDC->Ellipse(0,25,37,46) 里面的参数各代表什么意思啊
左上角和右下角的坐标
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 parameter