image question again
am 07.04.2010 04:44:04 von Karl DeSaulniers
--Apple-Mail-3-243268389
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
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
--Apple-Mail-3-243268389--
Re: image question again
am 07.04.2010 11:41:59 von Ashley Sheridan
--=-DwpVZWf2wm5haBUieNrm
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
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
--=-DwpVZWf2wm5haBUieNrm--