显示下拉菜单

imagearc()

« image_type_to_mime_type | imagecreate »
<?php
$image 
imagecreatetruecolor (
    
// int $image_width
    
 // int $image_height
);

$color imagecolorallocate(
    
$image,
    
// int $red,
    
// int $green,
    
 // int $blue
);

$bool imagearc (
    
// resource $image
    
// int $cx
    
// int $cy
    
// int $width
    
// int $height
    
// int $start
    
// int $end
    
  // int $color
);
?>
结果
$image = 'gd ressource'
$color = 65280
$bool = NULL
PHP warning : imagearc() expects parameter 1 to be resource, null given
示例
#1 imagearc  (/* $image_width = 200 */
 /* $image_height = 100 */
 /* $red = 0 */
 /* $green = 255 */
 /* $blue = 0 */
 
$image,
 
100,
 
50,
 
120,
 
80,
 
30,
 
290,
 
$color)
#2 imagearc  (/* $image_width = 200 */
 /* $image_height = 100 */
 /* $red = 0 */
 /* $green = 255 */
 /* $blue = 0 */
 
$xyz,
 
100,
 
50,
 
120,
 
80,
 
30,
 
290,
 
$color)
#3 imagearc  (/* $image_width = 200 */
 /* $image_height = 100 */
 /* $red = 0 */
 /* $green = 255 */
 /* $blue = 0 */
 
$image,
 
100,
 
50,
 
120,
 
80,
 
30,
 
290,
 
$xyz)