You are here: Re: [PHP] FW: Merging two images (GD & PNG) « PHP « IT news, forums, messages
Re: [PHP] FW: Merging two images (GD & PNG)

Posted by Jochem Maas on 10/21/90 11:33

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
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация