三好街做网站公司,网站制作长春,天眼查询系统,网页版淘宝和这个配合使用
Laravel ThinkPhP 海报生成_laravel 制作海报-CSDN博客 代码
//水印
$x_length $imageInfo[0];
$y_length $imageInfo[1];$color imagecolorallocatealpha($posterImage, 255, 255, 255, 70); // 增加透明度参数alpha$font_size 40; //字体大小
$angle …和这个配合使用
Laravel ThinkPhP 海报生成_laravel 制作海报-CSDN博客 代码
//水印
$x_length $imageInfo[0];
$y_length $imageInfo[1];$color imagecolorallocatealpha($posterImage, 255, 255, 255, 70); // 增加透明度参数alpha$font_size 40; //字体大小
$angle -45; //水印文本旋转度
$water_h 300;//水印高度
$water_w 300;//水印宽度$water_text 水印文本;//水印文本for ($x 0; $x $x_length; $x $water_w) {for ($y 0; $y $y_length; $y $water_h) {imagettftext($posterImage, $font_size, $angle, $x, $y, $color, $fontFile, $water_text);}
}imagecolortransparent($posterImage, $color); // 将 $color 颜色设置为透明颜色
完毕