圖形函式庫

ImagePolygon

(PHP3 , PHP4)

ImagePolygon ---  畫一個多邊形

語法 : int imagepolygon (int im, array points, int num_points, int col)

說明 : 

ImagePolygon( )在圖形 im中,建立一個多邊形,參數 points是個包含了多邊形的頂點的一個PHP陣列,例如 : points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1等等,參數 num_points是頂點的總數。

參考 : imagecreate( )


上一頁 首頁 下一頁