21,893
社区成员




$src621 = imagecreate(200,200);
$yellow = imagecolorallocate($src621, 255, 255, 0);
$red = imagecolorallocate($src621, 255, 0, 0);
$green = imagecolorallocate($src621, 0, 255, 0);
imagerectangle($src621, 100, 50, 150, 150, $green);
imagefill($src621, 0, 0, $red);
header("Content-Type: image/png");
imagepng ($src621);
imagedestroy($src621);
$src621 = imagecreate(200,200);
$yellow = imagecolorallocate($src621, 255, 255, 0);
$red = imagecolorallocate($src621, 255, 0, 0);
$green = imagecolorallocate($src621, 0, 255, 0);
imagerectangle($src621, 50, 50, 150, 150, $green);
imagefill($src621, 55, 110, $red);
header("Content-Type: image/png");
imagepng ($src621);
imagedestroy($src621);