当我创建图像时:
imagecopy($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $sy - $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp));
我可以这样输出:
header('Content-type: image/png');
但是我怎样才能保存它呢?
您可以使用下面的代码来保存图像。
imagepng($imagename, $mapimage_path , 0);