<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> {<br> $text_width = imagefontwidth($font_size)*strlen($string);<br> $center = ceil($image_width / 2);<br> $x = $center - (ceil($text_width/2));<br> ImageString($image, $font_size, $x, $y, $string, $color);<br> } <br><br>if ($_POST['Btn_OK']=="Crear"){<br> $texto=$_POST['texto'];<br> $Htexto=ImageCreate($alto,$ancho);<br> $alto=500;<br> $ancho=500;<br> $Hfondo = imagecolorallocate($Htexto, 255, 255, 255);<br> $Hletra = imagecolorallocate($Htexto, 0, 0, 255);<br> CentrarImg($Htexto,$ancho,$texto,0,$alto,$Hletra);<br> header("Content-Type: image/gif");<br> 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>