ImageFilledPolygon
(PHP3 , PHP4)
ImageFilledPolygon --- 建立一個多邊形並且填滿顏色
語法 :
int imagefilledpolygon(int im, array points, int num_points, int col)說明 :
ImageFilledPolygon( )在圖形 im中,建立一個多邊形,並且以顏色 col將多邊形填滿。參數 points是個包含了多邊形的頂點的一個PHP陣列,例如 : points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1等等,參數 num_points是頂點的總數。