php imagine函数,PHP图形处理函数总结概览

PHP图形处理函数的种类有很多种,我们在文章中做了一些总结,希望大家能够收藏以下列表,方便将来在实际代码编写中查找。

getimagesize: 取得图片的长宽。

imagearc: 画弧线。

imagechar: 写出横向字符。

imagecharup: 写出直式字符。

imagecolorallocate: 匹配颜色。

imagecolortransparent: 指定透明背景色。

imagecopyresized: 复制新图并调整大小。

imagecreate: 建立新图。

imagedashedline: 绘虚线。

imagedestroy: 结束图形。

imagefill: 图形着色。

imagefilledpolygon: 多边形区域着色。

imagefilledrectangle: 矩形区域着色。

imagefilltoborder: 指定颜色区域内着色。

imagefontheight: 取得字型的高度。

imagefontwidth:这个PHP图形处理函数 取得字型的宽度。

imageinterlace: 使用交错式显示与否。

imageline: 绘实线。

imageloadfont: 载入点阵字型。

imagepolygon: 绘多边形。

imagerectangle: 绘矩形。

imagesetpixel: 绘点。

imagestring: 绘横式字符串。

imagestringup: 绘直式字符串。

imagesx: 取得图片的宽度。

imagesy: 取得图片的高度。

imagettfbbox: 计算 ttf 文字所占区域。

imagettftext: 写 ttf 文字到图中。

imagecolorat: 该PHP图形处理函数取得图中指定点颜色的索引值。

imagecolorclosest: 计算色表中与指定颜色最接近者。

imagecolorexact: 计算色表上指定颜色索引值。

imagecolorresolve: 计算色表上指定或最接近颜色的索引值。

imagecolorset: 配置色表上指定索引的颜色。

imagecolorsforindex: 取得色表上指定索引的颜色。

imagecolorstotal: 计算图的颜色数。

imagepsloadfont: 载入 postscript 字型。

imagepsfreefont: 卸下 postscript 字型。

imagepsencodefont: postscript 字型转成向量字。

imagepstext: 写 postscript 文字到图中。

imagepsbbox: 计算 postscript 文字所占区域。

imagecreatefrompng: 取出 png 图型。

imagepng: 建立 png 图型。

imagecreatefromgif: 取出 gif 图型。

imagegif: 建立 gif 图型。

以上这一列表就是PHP图形处理函数的所有种类。

【责任编辑:曹凯 TEL:(010)68476606】

点赞 0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值