Re: FW: Merging two images (GD & PNG)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Albert wrote:
Jochem Maas wrote:

imagecreatetruecolor() is probably what your after:

http://php.net/imagecreatetruecolor

Albert wrote:

Notes:
1. When using imagecreatetruecolor the images turn black


I did try imagecreatetruecolor() but then the images turn black.

the output image resource you create should be created with $xxx = imagecreatetruecolor(1000,1000),
you should call imagealphablending($xxx, true) on the output image resource after you create and
before copying [which you are as far as I can tell], and you should use imagecopyresampled()
to actually copy the image data into the final image (instead of imagecopy()).

try this site:
http://php.amnuts.com/

I use a very hacked up version of his image masking class to do similar things to
what you want to do.


Albert


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux