因为收藏上的太详细了。http://cn.php.net/manual/zh/ref.image.php例子 1. imagettftext() 例子本例中的脚本将生成一个白色的 400x30 像素 PNG 图像,其中有黑色(带灰色阴影)Arial 字体写的“Testing...”。
<?php
// Set the content-type
header("Content-type: image/png");// Create the image
$im = imagecreatetruecolor(400, 30);// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);// The text to draw
$text = 'Testing...';
// Replace path by your own font path
$font = 'arial.ttf';// Add some shadow to the text
imagettftext($im, 20, 0, 11, 21, $grey, $font, $text);// Add the text
imagettftext($im, 20, 0, 10, 20, $black, $font, $text);// Using imagepng() results in clearer text compared with imagejpeg()
imagepng($im);
imagedestroy($im);
?>

解决方案 »

  1.   

    最简单的可以利用层来实现视觉效果
    <div></div>
    你可以看下HTML中的DIV用法
      

  2.   

    新学PHP,都不知道PHP有和ASP的水印插件类似的东西的说……看到这个大开眼见阿!手册内容太多了,根本没有办法全部认真的看完……而且现在我使用的是4.3.3的PHP,不知道这个能不能实现上面的功能
      

  3.   

    www.wave12.com wsImage3.5 缩略图水印组件
      

  4.   

    to:iasky(C#_ASP_PHP)
    我是想在现有的图片上加水印,不是自己创建一个图片
      

  5.   

    to:huacha()哪些组件你能在linux的服务器上用么?如果不能,就根本实现不了PHP的水印功能阿!