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 表示欲塗上的顏色。
整理: 夕垌菪姬 (天地JPLOP)
|