词条 | DRWPOINT |
释义 | DOS SVGACC图形开发库函数 原型 extern void far drwpoint (PixelMode mode, int colr, int x, int y) 输入 mode - 写点模式 colr - 颜色索引值 x, y - 待写点的位置 输出 无返回值 用法 DRWPOINT在(x,y)处用指定的颜色和写模式画一个点。如果点(x,y)位于当前视口的外面将不会绘制。 例子 /* * Draws a point 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(); drwpoint (1,10,320,240); getch(); videomodeset(vmode); exit(0); } |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。