📄 imagefilledpolygon.php3
字号:
<HTML>
<HEAD>
<TITLE>imagefilledpolygon</TITLE>
</HEAD>
<BODY>
<?
header("Content-type: image/gif");
$image = imagecreate(200,200);
// flood square with red
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);
$colorBlack = imagecolorallocate($image, 0, 0, 0);
// draw a black triangle
imagefilledpolygon($image,
array(100, 10, 50, 60, 150, 60),
3, $colorBlack);
imagegif($image);
?>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -