如何将rotang添加到image.php

时间:2017-08-17 02:52:45

标签: php image rotation image-rotation imagecreatefrompng

添加此

$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

示例输出图像 enter image description here

0 个答案:

没有答案