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

 

词条 DRWCIRCLE
释义

DOS SVGACC图形开发库函数

原型 extern void far drwcircle (PixelMode mode, int colr, int xcenter, int ycenter, int radius)

输入 mode - 写点模式

colr - 颜色索引值

xcenter, ycenter - 圆的圆心位置

radius - 圆的半径

输出 无返回值

用法 DRWCIRCLE按照指定的圆心(xcenter, ycenter)和半径(radius)用指定的颜色和写模式画一个圆。所有的xcenter,ycenter和radius都是有效的。圆的任何超出当前视口的矩形部份将不会绘制。

例子

/*

* Places a circle 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();

drwcircle (1,10,320,240,200);

getch();

videomodeset(vmode);

exit(0);

}

随便看

 

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

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/7 3:22:54