Re: [PHP] image question again

2010-04-07 Thread Ashley Sheridan
On Tue, 2010-04-06 at 21:44 -0500, Karl DeSaulniers wrote:

 When I have an imagecreatetruecolor and I create another one and use  
 imagecopymerge, how do I keep the backgrounds transparent even if say  
 the width of the top image is smaller than the back image?
 I keep getting a black background where the top image does not cover  
 the back. It sets the transparency to the rest of the top image as  
 long as it is covering the bottom one. I think it has to do with the  
 imagealphablending.
 Any ideas?
 TIA
 
 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com
 


If it's just that the images are different sizes, then imagecopyresample
might be the better option.

Thanks,
Ash
http://www.ashleysheridan.co.uk




[PHP] image question again

2010-04-06 Thread Karl DeSaulniers
When I have an imagecreatetruecolor and I create another one and use  
imagecopymerge, how do I keep the backgrounds transparent even if say  
the width of the top image is smaller than the back image?
I keep getting a black background where the top image does not cover  
the back. It sets the transparency to the rest of the top image as  
long as it is covering the bottom one. I think it has to do with the  
imagealphablending.

Any ideas?
TIA

Karl DeSaulniers
Design Drumm
http://designdrumm.com