C语言fillpoly函数详解

2020-01-06 13:48:09王旭
  • */  poly[6] = maxx / 2; 
  • poly[7] = maxy / 2;   
  • /* loop through the fill patterns */  for (i=EMPTY_FILL; i<USER_FILL; i++) 
  • {  /* set fill pattern */ 
  • setfillstyle(i, getmaxcolor());   
  • /* draw a filled polygon */  fillpoly(4, poly); 
  •   getch(); 
  • }   
  • /* clean up */  closegraph(); 
  • return 0;  } 

    注:fillpoly 函数是 TC 编译环境下的函数,VC 中无法使用。

    以上就是关于fillpoly函数填充多边形功能的实现代码,希望对大家的学习有所帮助。