1 Star 0 Fork 0

budwn/微信公众平台趣味测试(维吾尔文)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.php 970 Bytes
一键复制 编辑 原始数据 按行查看 历史
Askar 提交于 2019-01-19 18:04 . Signed-off-by: Askar 1472555632@qq.com
<?php
header("Content-type: text/html; charset=utf-8");
include 'ImageCreater.php';
include 'WordCreater.php';
include 'UyghurCharUtilities.class1.php';
$name = "تۇرغۇنئاي";
$of = "نىڭ";
$plan = "يىلدىكى پىلانى";
$year = " 9102- ";
$ucu = new UyghurCharUtilities();
//实例化创建生成语句对象
$word_creater = new WordCreater();
$word = $word_creater -> reverse2($ucu -> getUyPFStr($word_creater -> getWord()));//随机生成的语句
$img = $word_creater -> getImg();//随机生成的图片
$name = $word_creater -> reverse2($ucu -> getUyPFStr($name.$of.$year.$plan));
//实例化图片添加对象
$image_creater = new ImageCreater('img/back.jpg','images/'.$img,'img/qr.jpg');
//生成图片
$image_creater->createImage();
//添加名字
$image_creater -> addFont(25,4,100,80,'fonts/UKIJ3D.TTF',$name);
//添加情绪
$image_creater -> addFont(20,0,240,230,'fonts/UKIJ3D.TTF',$word);
//显示图片
$image_creater->showImage();
?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/budwn/planof2019.git
git@gitee.com:budwn/planof2019.git
budwn
planof2019
微信公众平台趣味测试(维吾尔文)
master

搜索帮助