首页 > 其他分享 >getpixel(0,0)

getpixel(0,0)

时间:2023-04-17 19:04:07浏览次数:27  
标签:getch graphmode int graphdriver include getpixel


#include < graphics.h > 
#include < stdio.h > 
int main() {
    int i;
    int graphdriver = DETECT;
    int graphmode;
    initgraph( & graphdriver, &graphmode, "");
    cleardevice();

    putpixel(0, 0, 2);
    i = getpixel(0, 0);
    getch();
    printf("(0,0):%d", i);

    getch();
    closegraph();
    return 0;
}


标签:getch,graphmode,int,graphdriver,include,getpixel
From: https://blog.51cto.com/u_16076050/6195973

相关文章