首页 >函数列表 >imagearc

imagearc

imagearc

(PHP 4, PHP 5)

imagearc画椭圆弧

说明

bool imagearc ( resource $image , int $cx , int $cy , int $w , int $h , int $s , int $e , int $color )

imagearc()cxcy(图像左上角为 0, 0)为中心在 image 所代表的图像中画一个椭圆弧。wh 分别指定了椭圆的宽度和高度,起始和结束点以 se 参数以角度指定。0°位于三点钟位置,以顺时针方向绘画。

Example #1 用 imagearc() 画一个圆

<?php
// 创建一个 200X200 的图像
$img imagecreatetruecolor(200200);
// 分配颜色
$white imagecolorallocate($img255255255);
$black imagecolorallocate($img000);
// 画一个黑色的圆
imagearc($img1001001501500360$black);
// 将图像输出到浏览器
header("Content-type: image/png");
imagepng($img);
// 释放内存
imagedestroy($img);
?>

参见 imageellipse()imagefilledellipse()imagefilledarc()


  • gd_info
  • getimagesize
  • image2wbmp
  • imagealphablending
  • imageantialias
  • imagearc
  • imagechar
  • imagecharup
  • imagecolorallocate
  • imagecolorallocatealpha
  • imagecolorat
  • imagecolorclosest
  • imagecolorclosestalpha
  • imagecolorclosesthwb
  • imagecolordeallocate
  • imagecolorexact
  • imagecolorexactalpha
  • imagecolormatch
  • imagecolorresolve
  • imagecolorresolvealpha
  • imagecolorset
  • imagecolorsforindex
  • imagecolorstotal
  • imagecolortransparent
  • imageconvolution
  • imagecopy
  • imagecopymerge
  • imagecopymergegray
  • imagecopyresampled
  • imagecopyresized
  • imagecreate
  • imagecreatefromgd
  • imagecreatefromgd2
  • imagecreatefromgd2part
  • imagecreatefromgif
  • imagecreatefromjpeg
  • imagecreatefrompng
  • imagecreatefromstring
  • imagecreatefromwbmp
  • imagecreatefromxbm
  • imagecreatefromxpm
  • imagecreatetruecolor
  • imagedashedline
  • imagedestroy
  • imageellipse
  • imagefill
  • imagefilledarc
  • imagefilledellipse
  • imagefilledpolygon
  • imagefilledrectangle
  • imagefilltoborder
  • imagefilter
  • imagefontheight
  • imagefontwidth
  • imageftbbox
  • imagefttext
  • imagegammacorrect
  • imagegd
  • imagegd2
  • imagegif
  • imagegrabscreen
  • imagegrabwindow
  • imageinterlace
  • imageistruecolor
  • imagejpeg
  • imagelayereffect
  • imageline
  • imageloadfont
  • imagepalettecopy
  • imagepng
  • imagepolygon
  • imagepsbbox
  • imagepsencodefont
  • imagepsextendfont
  • imagepsfreefont
  • imagepsloadfont
  • imagepsslantfont
  • imagepstext
  • imagerectangle
  • imagerotate
  • imagesavealpha
  • imagesetbrush
  • imagesetpixel
  • imagesetstyle
  • imagesetthickness
  • imagesettile
  • imagestring
  • imagestringup
  • imagesx
  • imagesy
  • imagetruecolortopalette
  • imagettfbbox
  • imagettftext
  • imagetypes
  • imagewbmp
  • imagexbm
  • image_type_to_extension
  • image_type_to_mime_type
  • iptcembed
  • iptcparse
  • jpeg2wbmp
  • png2wbmp
  • PHP MySQL HTML CSS JavaScript MSSQL AJAX .NET JSP Linux Mac ASP 服务器 SQL jQuery C# C++ java Android IOS oracle MongoDB SQLite wamp 交通频道