原型:extern int getpixel(int x, int y);
用法:#include <system.h>
功能:返回屏幕上指定点的状态
说明:(x,y)为屏幕上点的坐标,如果点为清除状态返回零,否则返回非零值。
举例:// pixel.c #include <system.h> main() { int i,j; clrscr(); printf("V"); gotoxy(10,10); // Hide cursor for(i=0;i<8;i++) for(j=0;j<16;j++) { if(getpixel(i,j)) putpixel(10+i,10+j,1); else putpixel(10+i,10+j,0); } getchar(); return 0; }相关函数:putpixel