In fact, making this program is very simple, as long as your website supports php! In fact, this is the same principle as adding watermarks to pictures. The kid is showing off his embarrassment. Let’s talk about the main code that mainly generates the logosc.php file! Damn it, 5M can’t transmit anything! ! Download address: http://blog.0907.org/logo-demo.rar None Source code and demo: Source
In fact, making this program is very simple, as long as your website supports php!Source code and demo: Source code source Demo source
<?php //ogo 在线生成由 无名制作 //博客地址:http://blog.0907.org //如果您使用本工具, //请给 blog.0907.org一个友情链接 //无名 在此谢过啦! $referer=$_SERVER['HTTP_REFERER']; $username = $mc; $im = imagecreatetruecolor(200, 66);//图片大小 $color=imagecolorallocate($im,255,255,255); $im = imagecreatefrompng("logo.png"); imagefill($im,0,0,$color); //设置颜色 $ziti = ImageColorAllocate($im, 0 , 0 ,0);//文字颜色 $red = ImageColorAllocate($im, 0 , 0 ,0);//网址颜色 $mczit = "../fonts/$zzt.ttf";//网站名称字体 $urlzt = "../fonts/$wzt.ttf";//网址字体 $zit = "../fonts/msyh.ttf";//网址字体 //输出图片 ImageTTFText($im, $s, $x, 75, 28,$ziti,$mczit,$username);//文字设置 ImageTTFText($im, $sw, $xw, 75, 60,$red,$urlzt,$url);//网址设置 ImageTTFText($im, 25, 0, 23, 45,$red,$zit,$zi);//网址设置 Header("Content-type: image/png"); //blog.0907.org Imagegif($im); ImageDestroy($im); exit(); ?>
下载地址:http://blog.0907.org/logo-demo.rar