Mega Code Archive

 
Categories / Php / Graphics
 

Create image object from PNG

<?php     $stars = imagecreatefrompng("stars.png");     $gradient = imagecreatefrompng("gradient.png");     imagecopymerge($stars, $gradient, 0, 0, 0, 0, 256, 256, 60);     header('Content-type: image/png');     imagepng($stars);     imagedestroy($stars);     imagedestroy($gradient); ?>