男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站

imagepolygon

(PHP 4, PHP 5, PHP 7, PHP 8)

imagepolygon畫(huà)一個(gè)多邊形

說(shuō)明

imagepolygon(
    resource $image,
    array $points,
    int $num_points,
    int $color
): bool

imagepolygon() 在圖像中創(chuàng )建一個(gè)多邊形。points 是一個(gè) PHP 數組,包含了多邊形的各個(gè)頂點(diǎn)坐標,即 points[0] = x0,points[1] = y0,points[2] = x1,points[3] = y1,以此類(lèi)推。num_points 是頂點(diǎn)的總數。

示例 #1 imagepolygon() 例子

<?php
// create a blank image
$image imagecreatetruecolor(400300);

// fill the background color
$bg imagecolorallocate($image000);

// choose a color for the polygon
$col_poly imagecolorallocate($image255255255);

// draw the polygon
imagepolygon($image,
             array (
                    
00,
                    
100200,
                    
300200
             
),
             
3,
             
$col_poly);

// output the picture
header("Content-type: image/png");
imagepng($image);

?>

參見(jiàn) imagecreate()imagecreatetruecolor()。

男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站