我遇到了php圖像函數,並且在生成了如何讓用戶使用生成的圖像作爲其簽名或w/e上的鏈接之後,我已經成功設法用php創建了簽名。使用生成的圖像作爲鏈接在論壇中使用?
<?php
$dest = imagecreatefromjpeg('test.jpg');
$src = imagecreatefrompng('blade_02.png');
imagealphablending($dest, false);
imagesavealpha($dest, true);
$black = imagecolorallocate($src, 0, 0, 0);
imagecolortransparent($src, $black);
imagecopymerge($dest, $src, 17, 13, 0, 0, 60, 0, 0);
imagecopymerge($dest, $src, 168, 70, 0, 0, 60, 100, 100);
$font_black = imagecolorallocate($dest, 2, 1, 8);
imagestring($dest, 3,357,19, "118" , $font_black);
header('Content-Type: image/png');
imagepng($dest);
imagedestroy($dest);
imagedestroy($src);
?>
HTML
<IMG STYLE="position:absolute; TOP:150px; LEFT:500px;" SRC="style/inventoryclean.png">
<!--Weapon begin-->
<IMG STYLE="position:absolute; TOP:163px; LEFT:512px;" SRC="<?php echo $wep_icon; ?>" onmouseover="TagToTip('Span2')">
<span id="Span2"><?php echo $seal_type[0]; ?><br><br> <?php echo $seal_wep; ?><br><br><?php echo $Degree_wep; ?> <br></span>
<!--Wepaon end-->
這個問題太不清楚。你的問題到底是什麼? – BBog 2012-04-09 09:50:43