词条 | DRWLINE |
释义 | DOS SVGACC图形开发库函数 原型 extern void far drwline (PixelMode mode, int colr, int x1, int y1, int x2, int y2) 输入 mode - 写点模式 colr - 颜色索引值 x1, y1 - 直线的一端 x2, y2 - 直线的另一端 输出 无返回值 用法 DUWLINE以(x1, y1)和(x2, y2)为顶点用指定的颜色和写模式画一条直线 。所有x1,y1,x2和y2的值都是有效的。直线任何超出当前视口的矩形部份将不会绘制。 例子 /* * Draws a line from 0,0 to 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(); drwline (1,10,0,0,320,240); getch(); videomodeset(vmode); exit(0); } |
随便看 |
|
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。