您的位置:首页 > 编程语言 > PHP开发

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