Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/12/2009, 11:23
raulbotella
 
Fecha de Ingreso: marzo-2007
Mensajes: 89
Antigüedad: 18 años
Puntos: 0
Pregunta Ayuda con libreria GD

Buenas no se cual es el problema pero intento escribir texto sobre una imagen GIF redonda con fondo azul, y le digo que el texto sea blanco, pero lo pone en un gris claro, adjunto el código a ver si me pueden echar una mano, gracias:

Código PHP:
<?

// Set the content-type
header('Content-type: image/gif');

// Create the image
$im imagecreatefromgif("thumbs_gif/ico_mensualidad.gif");
// Create some colors
$white imagecolorallocate($im255255255);

// The text to draw
$text 'Testing...';
// Replace path by your own font path
$font 'OldSansBlack.ttf';

// Add some shadow to the text
imagettftext($im2001121$white$font$text);

// Add the text

// Using imagepng() results in clearer text compared with imagejpeg()
ImageGif($im,'thumbs_gif/PRUEBA.gif');  
ImageDestroy($im);
?>
Agradeceria vuestra ayuda, gracias...

Utilizo imagettftext para poder cargar la fuente que quiera...