1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| <?php
header('Content-Type: image/png');
// Désactivation des magic_quotes_gpc
ini_set('magic_quotes_gpc', 0);
$pseudo = $_GET['pseudo'];
$src1 = imagecreatefromstring(file_get_contents("render.png"));
$dest = imagecreatefromstring(file_get_contents("fond.png"));
// Set the brush
imagesetbrush($dest, $src1);
// Draw a couple of brushes, each overlaying each
imageline($dest, 100, 70, 100, 70, IMG_COLOR_BRUSHED);
$src2 = imagecreatefromstring(file_get_contents("render.png"));
$dest2 = $dest;
// Set the brush
imagesetbrush($dest2, $src2);
// Draw a couple of brushes, each overlaying each
imageline($dest2, 200, 70 , 200, 70 , IMG_COLOR_BRUSHED);
$blanc = imagecolorallocate($dest, 255, 255, 255);
imagestring($dest2, 4, 35, 15, "$pseudo", $blanc);
imagepng($dest2);
imagedestroy($dest);
imagedestroy($dest2);
?> |
Partager