Php imagecreatefrompng图像使用imagestring在基本图像的顶部
好的,我想要一个基本图像(background.png)400x400 和一个化身200x200,并使用imagestring将其放在imagecreatefrompng中background.png的顶部 拥有: 想要: 迄今为止的代码Php imagecreatefrompng图像使用imagestring在基本图像的顶部,php,imagecreatefrompng,Php,Imagecreatefrompng,好的,我想要一个基本图像(background.png)400x400 和一个化身200x200,并使用imagestring将其放在imagecreatefrompng中background.png的顶部 拥有: 想要: 迄今为止的代码 <?php $image = ('background.png'); $im = imagecreatefrompng($image); $white = imagecolorallocate($im, 255, 255, 255); $width
<?php
$image = ('background.png');
$im = imagecreatefrompng($image);
$white = imagecolorallocate($im, 255, 255, 255);
$width = imagesx($im);
$height = imagesy($im);
//where I want image avatar.png 200x200
Header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
/?