函数:ImageFilledPolygon()


ImageFilledPolygon

多边形区域着色。

语法: int imagefilledpolygon(int im, array points, int num_points, int col);

返回值: 整数

函数种类: 图形处理

内容说明

本函数将图片的封闭多边形区域着色。参数 points 为数组,代表多边形区域,数组的偶数元素为 X 坐标,奇数元素为 Y 坐标,例如 points[0] = x0、points[1] = y0、points[2] = x1、points[3] = y1。参数 num_points 为多边形的转折点数目。参数 col 表示欲涂上的颜色。



[ 上一页 PHP 手册 下一页 ]

PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序