21,893
社区成员




<?php
$img = imagecreatetruecolor(50, 30);
$green = imagecolorallocate($img, 0, 255, 0);
$result = imagefill($img, 0, 0, $green);
imagepng($img, './pic.png');
imagedestroy($img);
<?php
$img = imagecreatetruecolor(50, 30);
$green = imagecolorallocate($img, 0, 255, 0);
$result = imagefill($img, 0, 0, $green);
imagegif($img, './pic.gif');
imagedestroy($img);