请输入您要查询的百科知识:

 

词条 DRWELLIPSE
释义

DOS SVGACC图形开发库函数

原型 extern void far drwellipse (PixelMode mode, int colr, int xcenter, int ycenter, int radiusx, int radiusy)

输入 mode - 写模式

colr - 颜色索引值

xcenter, ycenter - 椭圆的中心

radiusx - X方向的半径

radiusy - Y方向的半径

输出 无返回值

用法 DRWELLIPSE以(xcenter,ycenter)为中心用指定的颜色和写模式画一个椭圆。横向半径为radiusx、纵向半径为radiusy。所有的xcenter,ycenter,radiusx和radiusy都是有效的。椭圆任何超出当前视口的矩形部份将不会绘制。

例子

/*

* Places an ellipse at the center of the screen

*/

#include <stdlib.h>

#include <conio.h>

#include "svgacc.h"

void main(void)

{

int vmode;

vmode = videomodeget();

if ( !whichvga() )

exit(1);

if ( whichmem() < 512)

exit(1);

res640();

drwellipse (1,10,320,240,318,238);

getch();

videomodeset(vmode);

exit(0);

}

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/1 19:11:47