21,886
社区成员
发帖
与我相关
我的任务
分享
<?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);