勇芳软件工作室.汉化:  Filled Shapes > Filled Shapes Functions >

Ellipse

Previous pageReturn to chapter overviewNext page

描述

 

椭圆函数绘制一个椭圆。椭圆的中心是指定边界矩形的中心。使用当前笔勾画椭圆,并使用当前画笔填充椭圆。

 

C++ 语法

 

BOOL Ellipse(

__in HDC hdc,

__in int nLeftRect,

__in int nTopRect,

__in int nRightRect,

__in int nBottomRect

);

 

PowerBASIC 语法

 

FUNCTION Ellipse ( _

BYVAL hdc AS DWORD, _

BYVAL nLeftRect AS LONG, _

BYVAL nTopRect AS LONG, _

BYVAL nRightRect AS LONG, _

BYVAL nBottomRect AS LONG _

) AS LONG

 

参数

 

hdc

 

[in]处理设备上下文。

 

nLeftRect

 

[in]以边界矩形左上角的逻辑坐标指定x坐标。

 

nTopRect

 

[in]以边界矩形左上角的逻辑坐标指定y坐标。

 

nRightRect

 

[in]指定边界右下角的x坐标(以逻辑坐标)。

 

nBottomRect

 

[in]以逻辑坐标指定边界矩形右下角的y坐标。

 

返回值

 

如果函数成功,返回值不为零。

 

如果函数失败,返回值为零。

 

Windows NT / 2000 / XP / Vista / Windows 7:要获取扩展错误信息,请调用GetLastError.

 

备注

 

Ellipse既不使用也不更新当前位置。

 

Windows 95/98 / Me:边界矩形的坐标之和不能超过32,767。nLeftRectnRightRectnTopRectnBottomRect参数的总和不能超过32,767。

 

引用文件 #INCLUDE Once

 

WinGdi.inc(包括Windows.inc)