请问VC中画椭圆的函数 Ellipse(a, b, c, d)的是个参数个是什么含义?在线等待指教。

dege 2003-09-26 10:45:47
请问VC中画椭圆的函数 Ellipse(a, b, c, d)的是个参数个是什么含义?
...全文
1667 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
dege 2003-09-26
  • 打赏
  • 举报
回复
谢谢各位的指教 我不知道是什么回事 我装了两次MSDN 都没成功,我先是装单位给我的MSDN没有成功,提示有文件找不到,然后我又到网上下载了一个,但还是不行,同样提示找不到文件,我都郁闷死了,我还有没有办法装上MSDN
chenxianbing9822 2003-09-26
  • 打赏
  • 举报
回复
a是矩形左上角x坐标,b是矩形左上角y坐标,c是矩形右下角x坐标,d是矩形右下角y坐标.
Viconia 2003-09-26
  • 打赏
  • 举报
回复
我直接把MSDN上的内容帖上来了,呵呵,自己学着看看吧
smch 2003-09-26
  • 打赏
  • 举报
回复
呵呵,象这种问题建议还是查MSDN吧,善于使用MSDN可以大大提高你的能力。
Viconia 2003-09-26
  • 打赏
  • 举报
回复
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.

Remarks

Draws an ellipse. The center of the ellipse is the center of the bounding rectangle specified by x1, y1, x2, and y2, or lpRect. The ellipse is drawn with the current pen, and its interior is filled with the current brush.

The figure drawn by this function extends up to, but does not include, the right and bottom coordinates. This means that the height of the figure is y2 – y1 and the width of the figure is x2 – x1.

If either the width or the height of the bounding rectangle is 0, no ellipse is drawn.

afantict 2003-09-26
  • 打赏
  • 举报
回复
是包围这个椭圆的矩形的左上角和右下角的坐标

16,547

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • AIGC Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

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