位置: 编程技术 - 正文
推荐整理分享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椭圆的宽度。
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由图象
标签: PHP:imagefilledellipse()的用法_GD库图像处理函数
本文链接地址:https://www.jiuchutong.com/biancheng/288350.html 转载请保留说明!友情链接: 武汉网站建设