位置: 编程技术 - 正文

PHP:imagecreate()的用法_GD库图像处理函数(php imagecopymerge)

编辑:rootadmin
imagecreate

推荐整理分享PHP:imagecreate()的用法_GD库图像处理函数(php imagecopymerge),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:php imagecolorallocate,php imagefill,php imagecopy,php imagettftext,php imagefill,php imagecopy,php imagettftext,php image,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 4, PHP 5)

imagecreate — 新建一个基于调色板的图像

说明 resource imagecreate ( int $x_size , int $y_size )

imagecreate() 返回一个图像标识符,代表了一幅大小为 x_size 和 y_size 的空白图像。

PHP:imagecreate()的用法_GD库图像处理函数(php imagecopymerge)

推荐使用 imagecreatetruecolor()。

Example #1 新建一个新的 GD 图像流并输出图像

<?phpheader("Content-type:image/png");$im=@imagecreate(,)ordie("CannotInitializenewGDimagestream");$background_color=imagecolorallocate($im,,,);$text_color=imagecolorallocate($im,,,);imagestring($im,1,5,5,"ASimpleTextString",$text_color);imagepng($im);imagedestroy($im);?>

参见 imagedestroy() 和 imagecreatetruecolor()。

PHP:imagecreatefromgd2part()的用法_GD库图像处理函数 imagecreatefromgd2part(PHP4=4.0.7,PHP5)imagecreatefromgd2part从给定的GD2文件或URL中的部分新建一图像说明resourceimagecreatefromgd2part(string$filename,int$srcX,int$srcY,int$width,int$

PHP:imagecreatefromgd2()的用法_GD库图像处理函数 imagecreatefromgd2(PHP4=4.0.7,PHP5)imagecreatefromgd2从GD2文件或URL新建一图像说明resourceimagecreatefromgd2(string$filename)从GD2文件或URL新建一图像。Tip如已启用fopen包装器

PHP:imagecolortransparent()的用法_GD库图像处理函数 imagecolortransparent(PHP4,PHP5)imagecolortransparent将某个颜色定义为透明色说明intimagecolortransparent(resource$image[,int$color])imagecolortransparent()将image图像中的透明色设

本文链接地址:https://www.jiuchutong.com/biancheng/288366.html 转载请保留说明!

上一篇:PHP:imagecreatefromgd()的用法_GD库图像处理函数

下一篇:PHP:imagecreatefromgd2part()的用法_GD库图像处理函数

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络