图像处理

--画布管理
imagecreatetruecolor()
imagedestroy()
 
--设置颜色
imagecolorallocate()

--生成图像
imagegif()
imagejpeg()
imagepng()
imagewbmp()
function_exists('imagegif')  //判断是否支持图像

--填充颜色
imagefill()

--绘制像素点和直线
imagesetpixel()
imageline()

--绘制矩形
imagerectangle()
imagefilledrectangle()

--绘制多边形
imagepolygon()
imagefilledpolygon()

--绘制椭圆
imageellipse()
imagefilledellipse()

--绘制弧线
imagearc()

--绘制文字
imagestring()
imagestringup()
imagechar()
imagecharup()

--使用字体图片
imagettftext()

--图片背景
imagecreatefromjpeg()
imagecreatefrompng()
imagecreatefromgif()
getimagesize()

--图片缩放和剪切
imagecopyresampled()

--添加图片水印
imagecopy()

--图片旋转和翻转
imagerotate()

--图片透明度
imagecolortransparent()