Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/08/2011, 17:44
Avatar de andresdzphp
andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 13 años, 6 meses
Puntos: 793
Respuesta: Como escribir en una imagen

Usa la función imagestring() ejemplo:

Código PHP:
Ver original
  1. <?php
  2.  
  3. $im = imagecreatefrompng('logo.png');
  4. $colortexto = imagecolorallocate($im, 255, 255, 255);
  5. imagestring($im, 5, 50, 50, "aca estaria el texto", $colortexto);
  6. header('Content-type: image/png');
  7. imagepng($im);

http://www.php.net/manual/es/function.imagestring.php
http://www.php.net/manual/es/function.imagecolorallocate.php