在C言语中setfill世界杯

  函数名: setfillstyle

  功 能: 设置堵空花样和色

  用 法: void far setfillstyle(int pattern, int color);

  以次例:

  #include

  #include

  #include

  #include

  #include

  char *fname[]={ "EMPTY_FILL",

  "SOLID_FILL",

  "LINE_FILL",

  "LTSLASH_FILL",

  "SLASH_FILL",

  "BKSLASH_FILL",

  "LTBKSLASH_FILL",

  "HATCH_FILL",

  "XHATCH_FILL",

  "INTERLEAVE_FILL",

  "WIDE_DOT_FILL",

  "CLOSE_DOT_FILL",

  "USER_FILL"

  };

  int main(void)

  {

  int gdriver=DETECT, gmode, errorcode;

  int style, midx, midy;

  char stylestr[40];

  initgraph(&gdriver, &gmode, "");

  errorcode=graphresult();

  if (errorcode !=grOk)

  {

  printf("Graphics error: %s\n", grapherrormsg(errorcode));

  printf("Press any key to halt:");

  getch();

  exit(1);

  }

  midx=getmaxx() / 2;

  midy=getmaxy() / 2;

  for (style=EMPTY_FILL; style < USER_FILL; style++)

  {

  setfillstyle(style, getmaxcolor());

  strcpy(stylestr, fname[style]);

  bar3d(0, 0, midx-10, midy, 0, 0);

  outtextxy(midx, midy, stylestr);

  getch();

  cleardevice();

  }

  getch();

  closegraph();

  return 0;

  }

  色堵空:

  1)SOLID_FILL 单色实堵空

  2)LINE_FILL 用“-”堵空

  3)HATCH_FILL 用方网格堵空

  4)XHATCH_FILL 用歪方格堵空

  5)WIDE_DOT_FILL用疏落点堵空

  6)CLOSE_DOT_FILL用稠麇集儿子点堵空

  函数名: setfillstyle

  功 能: 设置堵空花样和色

  用 法: void far setfillstyle(int pattern, int color);

在C言语中setfill世界杯

函数名: setfillstyle 功 能: 设置堵空花样和色 用 法: void far setfillstyle(int pattern, int color); 以次例: #include #include #include #include #include char *fname[]={ "EMPTY_FILL", "SOLID_FILL", "LINE_FILL", "LTSLASH_FILL...

阅读全文 »
 

传说中的七公主国语版( 2018-10-26 11:57:33)来

点击图片进入高清直播传说中的七公主国语版观看 传说中的七公主国语版,一下,事情,马克的,脸sè一变,还,在,怎么,我自然知道该,卫之间的,他会,脸sè一变,而,随即明白...

阅读全文 »
 
 
About Simple Magazine

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Learn more »
Help & Support

Quam velit dapibus quam, ornare suscipit tortor nisl ut tellus.

Frequently Asked Questions (FAQ) »
Get in touch

Phone: +46 7152 5412
Email: info@simplemagazine.com

Online contact form »