1

基本上我要做的就是在签名的背景上包含一个图像,尽管每次我尝试某些东西时都会收到错误消息:

资源 ID 4

我会非常感谢我在这方面收到的任何帮助..

<?php 
header("Content-type: image/png"); 

$image = imagecreatefrompng("../imgs/bisig1.png");
$other = imagecreatefrompng("../imgs/avatar.png");
//imagecolorallocate($image, R, G, B) in HEX values
$font_black = imagecolorallocate($image, 2, 1, 8);
$font_blue = imagecolorallocate($image, 25, 0, 255);

$List = "name.txt";
$string = "Account Name";
$string2 = "<img src='$other'>";
//($image, fontsize, rightindent, downindent, data, txtcolour)
imagestring($image, 3, 12, 3, "T17", $font_blue);
imagestring($image, 1, 86, 6, "SOTW", $font_black);
imagestring($image, 1, 110, 6, $string, $font_black);  
imagestring($image, 4, 110, 50, $other, $font_blue); 

imagepng($image); 
imagedestroy($image); 
imagepng($other); 
imagedestroy($other); 
?>
4

1 回答 1

1

$string2 = "<img src='$other'>";GD不是 HTML (

于 2011-07-14T23:06:40.033 回答