Monday, 15 July 2013

fill image with color except transparent part in php -


I want to fill a transparent image.
I just have to fill the scene part, not transparent, but my code is acting opposite.

Please help me

My code is for filling out my transparent image

  $ im = imagecreatefrompng ("ff6600 .png"); $ Width = imagesx ($ im); $ Height = images ($ IM); $ Img = imagecreatetruecolor ($ width, $ height); $ Blue = imagecolorallocate ($ im, 25, 25, 112); Imagefill ($ im, 0,0, blue $); Imescalefa ($ im, true); Header ("content-type: image / PNG"); Imagepng ($ im); Imagedestroy ($ im);  


No comments:

Post a Comment