DRWBOX

"colr x1

DOS SVGACC圖形開發庫函式
原型 extern void far drwbox (PixelMode mode, int colr, int x1, int y1, int x2, int y2)
輸入 mode - 寫點模式
colr - 顏色索引值
x1, y1 - 左上角
x2, y2 - 右下角
輸出 無返回值
用法 DRWBOX以(x1, y1)和(x2, y2)為對角頂點用指定的顏色和寫模式畫一個矩形。不必精確給出四個頂點的坐標,而只需給出矩形相對的兩頂點坐標。矩形任何超出當前視口的部份將不會繪製。
例子
/*
* Places a box around the whole 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();
drwbox (1,10,0,0,639,479);
getch();
videomodeset(vmode);
exit(0);
}

相關詞條

相關搜尋

熱門詞條

聯絡我們