imagearc
    (PHP 3, PHP 4, PHP 5)
imagearc -- 部分楕円の描画
説明
bool 
imagearc ( resource image, int cx, int cy, int w, int h, int s, int e, int color )
     imagearc() は、im で示す画像上に
     cx、cy を中心(左上が
     0,0)とする部分楕円を描画します。w と
     h はそれぞれ楕円の幅と高さを指定します。
     一方、始点と終点は引数 s と
     e により度(deg)で指定します。
     0° は 3 時の方向で、度数はそこから時計周りの角度です。
    
例 1. imagearc() で円を描く 
<?php
  // 200*200 の画像を作成する $img = imagecreatetruecolor(200, 200);
  // 色を設定する $white = imagecolorallocate($img, 255, 255, 255); $black = imagecolorallocate($img, 0, 0, 0);
  // 黒い円を描く imagearc($img, 100, 100, 150, 150, 0, 360, $black);
  // 画像をブラウザに出力する header("Content-type: image/png"); imagepng($img);
  // メモリを開放する imagedestroy($img);
  ?>
 |  
  | 
     imageellipse(),
     imagefilledellipse(),
     imagefilledarc() も参照ください。