0

添加这个

$rotang = 20; // Rotation angle

<?php
    $img = imagecreatefrompng("img.png");
    $textcolor = imagecolorallocate($img,205,205,205);
    $number1= " Your IP is $_SERVER[REMOTE_ADDR]";
    $number2= " Today is " . date("Y/m/d") ;
    imagestring($img,10,5,5,$number1,$textcolor);
    imagestring($img,10,5,30,$number2,$textcolor);
    header("Content-type: image/png");
    imagepng($img);
    imagedestroy($img);
?>

我想输出完全是php

示例输出图像 在此处输入图像描述

4

0 回答 0