<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Buenas buenas!!<br><br>estoy tratando de hacer el ejercicio de dibujar el texto, en prinicipio trate de hacer un bucle que pinte el fondo y el color de letra pero no pude lograr hacer ninguna de estas cosas... me dice la pagina: <br><br>"<img alt="La imagen "http://www.fotosmdq.com/merrell/prob/img.php" no 
puede mostrarse, porque contiene errores." src="http://www.fotosmdq.com/merrell/prob/img.php">"<br><br>a continuacion dejo el archivo img.php que es quien toma los datos de un formulario para poder realizar la imagen:<br><br><br>function CentrarImg($image, $image_width, $string, $font_size, $y, $color)<br>&nbsp;{<br>&nbsp;$text_width = imagefontwidth($font_size)*strlen($string);<br>&nbsp;$center = ceil($image_width / 2);<br>&nbsp;$x = $center - (ceil($text_width/2));<br>&nbsp;ImageString($image, $font_size, $x, $y, $string, $color);<br>&nbsp;} <br><br>if ($_POST['Btn_OK']=="Crear"){<br>&nbsp;&nbsp; &nbsp;$texto=$_POST['texto'];<br>&nbsp;&nbsp; &nbsp;$Htexto=ImageCreate($alto,$ancho);<br>&nbsp;&nbsp; &nbsp;$alto=500;<br>&nbsp;&nbsp; &nbsp;$ancho=500;<br>&nbsp;&nbsp; &nbsp;$Hfondo = imagecolorallocate($Htexto, 255, 255, 255);<br>&nbsp;&nbsp; &nbsp;$Hletra = imagecolorallocate($Htexto, 0, 0, 255);<br>&nbsp;&nbsp; &nbsp;CentrarImg($Htexto,$ancho,$texto,0,$alto,$Hletra);<br>&nbsp;&nbsp; &nbsp;header("Content-Type: image/gif");<br>&nbsp;&nbsp; &nbsp;imagegif($Htexto);<br>}<br><br>saludos!!<br>                                               <br /><hr />Hotmail prepara novedades y sorpresas en breve, <a href='http://explore.live.com/windows-live-hotmail' target='_new'>¡estate atento!</a></body>
</html>