imagecopymerge 拷贝并合并图像的一部分 php函数


imagecopymerge

(PHP 4 >= 4.0.1, PHP 5)

imagecopymerge拷贝并合并图像的一部分

说明

bool imagecopymerge ( resource $dst_im , resource $src_im , int $dst_x , int $dst_y , int $src_x , int $src_y , int $src_w , int $src_h , int $pct )

src_im 图像中坐标从 src_xsrc_y 开始,宽度为 src_w,高度为 src_h 的一部分拷贝到 dst_im 图像中坐标为 dst_xdst_y 的位置上。两图像将根据 pct 来决定合并程度,其值范围从 0 到 100。当 pct = 0 时,实际上什么也没做,当为 100 时对于调色板图像本函数和 imagecopy() 完全一样,它对真彩色图像实现了 alpha 透明。

Note:

本函数是 PHP 4.0.6 新加的。


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3