GD 和图像处理 函数

来源:互联网 发布:微道网络推广团队 编辑:程序博客网 时间:2024/05/18 10:33

imagettftext

imagettftext — 用 TrueType 字体向图像写入文本

array imagettftext ( resource $image , float $size , float $angle , int $x , int $y , int $color , string $fontfile , string $text )

使用 TrueType 字体将 指定的 text 写入图像。

imagecreatefromstring

imagecreatefromstring — 从字符串中的图像流新建一图像

resource imagecreatefromstring ( string $image )

imagecopyresized
imagecopyresized — 拷贝部分图像并调整大小

bool imagecopyresized ( resource $dst_image , resource $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_w , int $dst_h , int $src_w , int $src_h )

imagecopyresized() 将一幅图像中的一块矩形区域拷贝到另一个图像中。dst_image 和 src_image 分别是目标图像和源图像的标识符。

原创粉丝点击