Andreas: Hintergrundbild bei imagecreate

Beitrag lesen

Hi,

wie kann man bei imagecreat ein Hintergrundbild machen?

Mein Code sieht bis jetzt so aus:

<?php
$zufall=rand(10000,99999);
header ("Content-type: image/png");
$im = ImageCreate (150, 20)
      or die ("Kann keinen neuen GD-Bild-Stream erzeugen");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 255, 233, 01);
ImageString ($im, 3, 2, 2, "$zufall", $text_color);
ImagePNG ($im);
?>

Andreas