位置: 编程技术 - 正文

PHP:imagetypes()的用法_GD库图像处理函数

编辑:rootadmin
imagetypes

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

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

(PHP 4 >= 4.0.2, PHP 5)

PHP:imagetypes()的用法_GD库图像处理函数

imagetypes — 返回当前 PHP 版本所支持的图像类型

说明 int imagetypes ( void )

本函数以比特字段方式返回与当前 PHP 版本关联的 GD 库所支持的图像格式。将返回以下结果,IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP| IMG_XPM。 例如要检查是否支持 PNG,这样做:

Example #1 imagetypes() 例子

<?phpif(imagetypes()&IMG_PNG){echo"PNGSupportisenabled";}?>

PHP:imagestring()的用法_GD库图像处理函数 imagestring(PHP4,PHP5)imagestring水平地画一行字符串说明boolimagestring(resource$image,int$font,int$x,int$y,string$s,int$col)imagestring()用col颜色将字符串s画到image所代表的图

PHP:imagesy()的用法_GD库图像处理函数 imagesy(PHP4,PHP5)imagesy取得图像高度说明intimagesy(resource$image)imagesy()返回image所代表的图像的高度。Example#1使用imagesy()?php//createa*image$img=imagecreatetruecolor(

PHP:imagetruecolortopalette()的用法_GD库图像处理函数 imagetruecolortopalette(PHP4=4.0.6,PHP5)imagetruecolortopalette将真彩色图像转换为调色板图像说明boolimagetruecolortopalette(resource$image,bool$dither,int$ncolors)imagetruecolortopalett

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

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

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

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

鄂ICP备2023003026号

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

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