Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/08/2011, 09:13
marco64yes
 
Fecha de Ingreso: septiembre-2010
Mensajes: 350
Antigüedad: 13 años, 7 meses
Puntos: 9
Exclamación Respuesta: Ingresar texto a una imagen

Cita:
Iniciado por Panino5001 Ver Mensaje
Un ejemplo: http://disegnocentell.com.ar/test2.php

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title></title>
</
head>

<
body>
<
canvas id="pp" width="500" height ="350" onclick="window.open(this.toDataURL(),'','width=500,height=350');" style="cursor:pointer;">AcéptaloTu navegador es obsoleto :)</canvas>
<
p>Click sobre la imagen</p>
<
script>
var 
image=new Image();
image.src='arwen.jpg';
image.onload=function(){
    var 
ctx document.getElementById("pp").getContext("2d");
    
ctx.drawImage(image,0,0);
    
ctx.fillStyle '#FFF';
    
ctx.font 'bold 60px Verdana';
    
ctx.textBaseline 'bottom';
    
ctx.fillText('¿Esto?'130180);
}
</script>
</body>
</html> 
Más info:
http://www.html5tutorial.info/html5-canvas-text.php
Hola que tal... si pero a lo que voy es de una imagen virgen, ingresarle un texto y guardarla en una carpeta para obtener una segunda imagen pero ahora con un texto ... creo que me falto poner estos otros puntos, perdon :S creen que se pueda con js ?