imagepolygon

(PHP 3, PHP 4 , PHP 5)

imagepolygon -- 多角形の描画

説明

int imagepolygon ( resource image, array points, int num_points, int color)

imagepolygon()は、画像im上に 多角形を生成します。 pointsは多角形の頂点からなるPHPの配列で、 points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1という風になっています。 num_pointsは頂点の総数です。

imagecreate()imagecreatetruecolor()も参照してください。