php image 图像函数集
本文收集了
php 中有关 image 图像操作的一些函数,有简要说明,有需要的朋友,可以参
考下。
php image 图像函数集,如下
gd_info 函数:获取当前安装的 GD 库的信息
getimagesize 函数:获取图像的大小
image_type_to_extension 函数:获取图像类型的文件后缀
image_type_to_mime_type 函数:判断一个 IMAGETYPE 常量的 MIME 类型
image2wbmp 函数:以 WBMP 格式将图像输出到浏览器或文件
imagealphablending 函数:设定图像的混色模式
imageantialias 函数:是否使用 antialias(抗锯齿)功能
imagearc 函数:画椭圆弧
imagechar 函数:水平地画一个字符
imagecharup 函数:垂直地画一个字符
imagecolorallocate 函数:为一幅图像分配颜色
imagecolorallocatealpha 函数:为一幅图像分配颜色+alpha
imagecolorat 函数:获取某像素的颜色索引值
imagecolorclosest 函数:获取与指定颜色最接近的颜色的索引值
imagecolorclosestalpha 函数:获取与指定颜色加透明度最接近的颜色的索引值
imagecolorclosesthwb 函数:获取与指定颜色最接近的色度的黑白色的索引
imagecolordeallocate 函数:取消图像颜色的分配
imagecolorexact 函数:获取指定颜色的索引值
imagecolorexactalpha 函数:获取指定颜色加透明度的索引值
imagecolormatch 函数:使一个图像中调色板版本的颜色与真彩色版本更能匹配
imagecolorresolve 函数:获取指定颜色的索引值或有可能得到的最接近的替代值
imagecolorresolvealpha 函数:获取指定颜色透明度的索引值或有可能得到的最接近的替代
值
imagecolorset 函数:给指定调色板索引设定颜色