jack1986
新手上路

UID 77128
精华
0
积分 8
帖子 15
金钱 8 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2006-7-27
状态 离线
|
用 imagearc() 画一个圆弧怎么画不成?
我使用的是手册上的代码,可是都不行~不知是配置文件没有设置好,还是有其他地方没设置好?
环境是winxp+apache+mysql+php5,大家帮帮忙啊~
<?php
// create a 200*200 image
$img = imagecreate(200, 200);
// allocate some colors
$white = imagecolorallocate($img, 255, 255, 255);
// draw a white circle
imagearc($img, 100, 100, 150, 150, 0, 360, $white);
// output image in the browser
header("Content-type: image/png");
imagepng($img);
// free memory
imagedestroy($img);
?>
[ 本帖最后由 jack1986 于 2006-7-30 01:13 PM 编辑 ]
|
|