mnhstudio吧 关注:97贴子:2,694
  • 0回复贴,共1

C语言图形界面之创建方形函数

取消只看楼主收藏回复

void cjfx (unsigned char *vram, int xsize, unsigned char c, int x0,int y0 , int x1, int y1){
int x, y
for (y = y0; y <= y1; y++){
for (x = x0; x <= x1; x++){
vram[y * xsize + x] = c;
}
}
return
}
使用方法:
cjfx (q,320,颜色,左边,顶边,宽度,高度)
@lensen1234


1楼2014-06-19 16:59回复