位置: 编程技术 - 正文

PHP:imagefilledellipse()的用法_GD库图像处理函数

编辑:rootadmin
imagefilledellipse

推荐整理分享PHP:imagefilledellipse()的用法_GD库图像处理函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 4 >= 4.0.6, PHP 5)

imagefilledellipse — 画一椭圆并填充

说明 bool imagefilledellipse ( resource $image , int $cx , int $cy , int $width , int $height , int $color )

画一椭圆并填充到指定的 image。

参数

image

由图象创建函数(例如imagecreatetruecolor())返回的图象资源。

cx

中央的 x 坐标。

cy

中央的 y 坐标。

width PHP:imagefilledellipse()的用法_GD库图像处理函数

椭圆的宽度。

height

椭圆的高度。

color

要填充的颜色。颜色标识由函数 imagecolorallocate() 创建。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE。

范例

Example #1 imagefilledellipse() 例子

<?php//createablankimage$image=imagecreatetruecolor(,);//fillthebackgroundcolor$bg=imagecolorallocate($image,0,0,0);//chooseacolorfortheellipse$col_ellipse=imagecolorallocate($image,,,);//drawthewhiteellipseimagefilledellipse($image,,,,,$col_ellipse);//outputthepictureheader("Content-type:image/png");imagepng($image);?>

以上例程的输出类似于:

注释

Note: 此函数需要 GD 2.0.1 或更高版本(推荐 2.0. 及更高版本)。

参见

imageellipse() - 画一个椭圆 imagefilledarc() - 画一椭圆弧且填充

PHP:imagefill()的用法_GD库图像处理函数 imagefill(PHP4,PHP5)imagefill区域填充说明boolimagefill(resource$image,int$x,int$y,int$color)imagefill()在image图像的坐标x,y(图像左上角为0,0)处用color颜色执行区域填充

PHP:imagedestroy()的用法_GD库图像处理函数 imagedestroy(PHP4,PHP5)imagedestroy销毁一图像说明boolimagedestroy(resource$image)imagedestroy()释放与image关联的内存。image是由图像创建函数返回的图像标识符,例如imag

PHP:imageellipse()的用法_GD库图像处理函数 imageellipse(PHP4=4.0.6,PHP5)imageellipse画一个椭圆说明boolimageellipse(resource$image,int$cx,int$cy,int$width,int$height,int$color)在指定的坐标上画一个椭圆。参数image由图象

本文链接地址:https://www.jiuchutong.com/biancheng/288350.html 转载请保留说明!

上一篇:PHP:imagefilledpolygon()的用法_GD库图像处理函数

下一篇:PHP:imagefill()的用法_GD库图像处理函数(php中imagecreatefromjpeg)

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络