//创建图片并输出
//诡异的问题 是引入了一个文件 就无法正常输出,且文件内容无问题,将该文件内容复制另行保存一个文件引入竟然成功了,暂时怀疑是文件问题,技术能力不够待解........
header(
"Content-type: image/png"
);
$im
= imagecreate(200, 200)
or
die
(
"创建图像资源失败"
);
$bg
= imagecolorallocate(
$im
, 204, 204, 204);
$red
= imagecolorallocate(
$im
, 255, 0, 0);
imagearc(
$im
, 100, 100, 150, 150, 0, 360,
$red
);
imagepng(
$im);
imagedestroy(
$im
);