代码很简单,没什么可谈的。
< PHP
*由phpStorm。
*
用户:
管理员
*
日期:2015 6 29
*时间:21:25
* /
头('content-type:图像/格式); / / MIME type
$ img =画面欣赏(400300); / /
设置图片的像素
imagecolorallocate($ IMG,255255255); / /彩色图片
imageellipse($ IMG,200200,50,50,imagecolorallocate($ IMG,255,0,0)); / /绘制图形图像中,200200高50,50宽的中心点;
imagepng($ IMG); / /设置图片格式为PNG
结果如下:
以上是本文的全部内容,希望大家能喜欢。