php图像处理-邀请函附上信息
2017-04-08 09:55
288 查看
<?php //实例:TTF字体的文本 $filename = './sucai/invitation.jpg'; $image = imagecreatefromjpeg($filename); $size = 16; $angle = 0; $x = 220; $y = 450; $color = imagecolorallocate($image, 0, 0, 0); // $color = imagecolorallocatealpha($image, mt_rand(1,200), mt_rand(1,200), mt_rand(1,200),mt_rand(0,127)); $fontfile = './sucai/simkai.ttf'; $text = '展会号:732D, 公司名称:廊坊会议展览有限公司 品牌名称:阿迪达斯'; imagettftext($image, $size, $angle, $x, $y, $color, $fontfile, $text); //image 图像的资源 //size ttf字体的大小 //angle 角度 //x, y , ttf文字,左上角的坐标 //color 字体的颜色 //fontfile ttf 字体的文件所在的路径 //text 文本内容 // header('content-type:image/jpeg'); imagejpeg($image); imagedestroy($image); ?>
相关文章推荐
- PHP自定义错误处理器处理出错信息
- php 中图像压缩处理类(二)imageutil.php
- PHP:ImageMagick完美代替GB类库处理图像
- PHP应用-图像处理ppt
- PHP图像处理(二) GraphicsMagick 安装扩展及使用方法
- PHP图像处理的乐趣
- 【php】图像处理函数
- PHP图像处理及验证码
- PHP图像处理及验证码
- PHP图像处理之画图
- PHP自定义错误处理器处理出错信息
- 两个强悍的php 图像处理类1
- PHP图像处理--MagicWand生成缩略图(可加水印)
- php编程之图像处理
- PHP GD 图像处理组件的常用函数总结
- php 中图像压缩处理类(一)bmp.php
- 利用PHP自定义错误处理器处理出错信息
- 利用PHP应用图像处理生成验证码
- php图像处理类,上传,压缩,添加文字、图片水印
- php使用imagick进行图像处理