位置: 编程技术 - 正文

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

编辑:rootadmin
imageellipse

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

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

(PHP 4 >= 4.0.6, PHP 5)

imageellipse — 画一个椭圆

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

在指定的坐标上画一个椭圆。

参数

image

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

cx

中间的 X 坐标。

cy

中间的 Y 坐标。

width

椭圆的宽度。

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

椭圆的高度。

color

椭圆的颜色。颜色标识符由 imagecolorallocate() 创建。

返回值

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

范例

Example #1 imageellipse() 例子

<?php//新建一个空白图像$image=imagecreatetruecolor(,);//填充背景色$bg=imagecolorallocate($image,0,0,0);//选择椭圆的颜色$col_ellipse=imagecolorallocate($image,,,);//画一个椭圆imageellipse($image,,,,,$col_ellipse);//输出图像header("Content-type:image/png");imagepng($image);?>

以上例程的输出类似于:

注释

Note:

本函数需要 GD 2.0.2 或更高版本。

参见

imagefilledellipse() - 画一椭圆并填充 imagearc() - 画椭圆弧

PHP:imagecreatetruecolor()的用法_GD库图像处理函数 imagecreatetruecolor(PHP4=4.0.6,PHP5)imagecreatetruecolor新建一个真彩色图像说明resourceimagecreatetruecolor(int$width,int$height)imagecreatetruecolor()返回一个图像标识符,代表

PHP:imagedashedline()的用法_GD库图像处理函数 imagedashedline(PHP4,PHP5)imagedashedline画一虚线说明boolimagedashedline(resource$image,int$x1,int$y1,int$x2,int$y2,int$color)反对使用本函数。应该用imagesetstyle()和imageline()的组

PHP:imagecreatefromxpm()的用法_GD库图像处理函数 imagecreatefromxpm(PHP4=4.0.1,PHP5)imagecreatefromxpm由文件或URL创建一个新图象。说明resourceimagecreatefromxpm(string$filename)imagecreatefromxpm()返回一图像标识符,代表了从

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

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

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

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

鄂ICP备2023003026号

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

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