Backgrand image d'une image créer en php

Fermé
fatima sar Messages postés 3 Date d'inscription mardi 12 mai 2009 Statut Membre Dernière intervention 27 juin 2010 - 27 juin 2010 à 23:33
Bonjour,
j'ai créer une image en php o je sait pas comment la donner une background image au lieu d'un couleur voila le code que j'ai realisé:
<?php
$my_img = imagecreate( 200, 80 );
$background = imagecolorallocate( $my_img, 0, 0, 255 );
$text_colour = imagecolorallocate( $my_img, 255, 255, 0 );
$line_colour = imagecolorallocate( $my_img, 128, 255, 0 );
imagestring( $my_img, 4, 30, 25, "3.jpg",
$text_colour );
imagesetthickness ( $my_img, 5 );
imageline( $my_img, 30, 45, 165, 45, $line_colour );


header( "Content-type: image/png" );
imagepng( $my_img );
imagecolordeallocate( $line_color );
imagecolordeallocate( $text_color );
imagecolordeallocate( $background );
imagedestroy( $my_img );
?>
svp si i ya quelqu'un m'aider de trouver le solution et merci d'avance