说明
imagefill() 在 image
图像的坐标 x,y(图像左上角为
0, 0)处用 color
颜色执行区域填充(即与 x, y 点颜色相同且相邻的点都会被填充)。
<?php
$im = imagecreatetruecolor('example.jpg', 100, 100);
// sets background to red
$red = imagecolorallocate($im, 255, 0, 0);
imagefill($im, 0, 0, $red);
?>
参见 imagecolorallocate()。