调用方法:
1、在需要加水印的文件顶部引入类库:
include_once'imageClass.php';
2、声明新类:
$tpl=newimage_fu;
3、给图片水印提供参数:
$tpl->img(图片路径,水印文字,字体路径,字体大小,字体角度);
比如:$tpl->img('phpdaima.jpg','这是水印文字','ziti.ttf',30,0)
调用方法:
1、在需要加水印的文件顶部引入类库:
include_once'imageClass.php';
2、声明新类:
$tpl=newimage_fu;
3、给图片水印提供参数:
$tpl->img(图片路径,水印文字,字体路径,字体大小,字体角度);
比如:$tpl->img('phpdaima.jpg','这是水印文字','ziti.ttf',30,0)