21xrx.com
2024-04-26 14:55:02 Friday
登录
文章检索 我的文章 写文章
c中的fillpoly函数
2021-07-07 18:20:40 深夜i     --     --
c f i l l p o l y

Fillpoly 函数绘制并填充多边形。 它需要与 drawpoly 相同的参数。

声明: void drawpoly( int num, int *polypoints );有关参数的详细信息,请参阅 drawpoly.fillpoly 使用当前填充图案和颜色填充,可以使用 setfillstyle 更改。

C程序

#include <graphics.h>
#include <conio.h>


main()
{
   int gd=DETECT,gm,points[]={320,150,440,340,230,340,320,150};

   initgraph(&gd, &gm, "C:\\TC\\BGI");

   fillpoly(4, points);

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

 

  
  
下一篇: 泛洪功能

评论区

{{item['qq_nickname']}}
()
回复
回复