PHP的imagefilledarc()函数参数详解
2016-12-24 14:25
381 查看
参数 说明
imagefilledarc(九个参数);
image 图像资源,欲绘制椭圆弧的图像cx 椭圆中心 x 坐标
cy 椭圆中心 y 坐标
w 椭圆宽度
h 椭圆高度
s 起始点,0 表示 3 点钟方向
e 角度,360 表示完全封闭
color 图像颜色
style
例如:
<?php //创建画布 $img=imagecreatetruecolor(300,200); //创建颜色 $red=imagecolorallocate($img,255,0,0); $white=imagecolorallocate($img,255,255,0); //填充画布 imagefill($img, 0, 0, $red); //画图形 // imagefilledellipse($img,150,100,300,200,$white); imagefilledarc($img,150,100,30,30,0,270,$white,IMG_ARC_NOFILL); header('content-type:image/jpeg'); //输出图案 imagejpeg($img); ?>
相关文章推荐
- [PHP] GD库(十一)图像填充 imagefill、imagefilledarc 与 imagefilledrectangle() 函数
- PHP date函数参数详解
- PHP date函数参数详解
- PHP date函数参数详解
- ***PHP $_FILES函数详解 + PHP文件上传 move_uploaded_file() 参数的正确写法
- php可变长参数处理函数详解
- PHP date函数参数详解
- PHP中imagecopyresampled函数创建缩略图参数详解
- PHP date函数参数详解
- 10. PHP 图像填充 imagefill、imagefilledarc 与 imagefilledrectangle() 函数
- php检查函数必传参数是否存在的实例详解
- php引用(&)变量引用,函数引用,对象引用和参数引用用法详解
- PHP date函数参数详解
- PHP date函数参数详解
- PHP的time()date()函数参数详解
- PHP date()函数参数详解
- PHP date函数参数详解
- PHP date函数参数详解
- PHP date函数参数详解
- php中http头设置函数header参数详解