Salve a tutti,
utilizzo questo codice per creare un testo

Codice PHP:

<?php
// Set the content-type
header("Content-type: image/png");

// Create the image
$im imagecreatetruecolor(40030);

// Create some colors
$white imagecolorallocate($im255255255);
$grey imagecolorallocate($im128128128);
$black imagecolorallocate($im000);

// The text to draw
$text 'testo di prova';
// Replace path by your own font path
$font 'comic.ttf';

// Add some shadow to the text
imagettftext($im2001121$grey$font$text);

// Add the text
imagettftext($im2001020$black$font$text);

// Using imagepng() results in clearer text compared with imagejpeg()
imagepng($im);
imagedestroy($im);
?>


volevo sapere come implementare uno sfondo all'interno del testo e come cambiare il colore dello sfondo (sotto al testo)


grazie a chi mi rispinderà