Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/12/2009, 07:50
Avatar de thosecars82
thosecars82
 
Fecha de Ingreso: abril-2008
Mensajes: 32
Antigüedad: 16 años
Puntos: 0
background imagefill

Hola buenas
¿por qué me está dibujando el cuadradito en negro en vez de en rojo tal y como espero?
Podeis mirarlo en
[link] www.arreglaordenador.com/imagenumber2.php[/link]

[code=text]
<?php

$im = imagecreatetruecolor(100, 100);

// sets background to red
$red = imagecolorallocate($im, 255, 0, 0);
imagefill($im, 0, 0, $red);

header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
[/code]
Gracias

Última edición por thosecars82; 14/12/2009 a las 08:27