我遇到了 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-->