Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/01/2012, 00:48
vitro012
 
Fecha de Ingreso: marzo-2009
Mensajes: 133
Antigüedad: 15 años, 1 mes
Puntos: 4
Respuesta: Crear Imagen en PNG

Ya lo resolvi

Código PHP:
$imagen='mi imagen.png';
$Ax=200;
,
$Ay=150;
$ventanaAncho=800;
$ventanaAlto=300;


$im imagecreatefrompng($imagen);    
//conservar transparencia
imagealphablending($imtrue);
imagesavealpha($imtrue);
$thumb imagecreate($ventanaAncho,$ventanaAlto); 
imagecopyresampled($thumb,$im,$Ax ,$Ay ,$ventanaAncho,$ventanaAlto,$ventanaAncho,$ventanaAlto); 
imagepng($thumb,$nombreimg.'.png');