TypechoJoeTheme
2020-12-23
用php生成图片代码:function 信息($昵称, $QQ, $进群, $退群, $到期){
$图片 = imagecreatetruecolor(250, 380); //创建图片
$头像=imagecreatefromstring(file_get_contents("https://q2.qlogo.cn/headimg_dl?dst_uin={$QQ}&spec=640"));
$颜色 = [imagecolorallocate($图片, 255, 255, 255),imagecolorallocate($图片, 17, 142, 255),imagecolorallocate($图片, 255, 50, 50) ];
imagefill($图片, 0, 0, $颜色[0]);
$字体 = realpath("simsun.ttc");
imagecopyresized($图片,$头像,5,5,0,0,240,240,imagesx($头像),imag...
2016-09-12