Re: How to use transparent png in createfrompng?
| From: | Richard Lynch | Date: | Sat, 06 Jul 2002 05:12:37 +0000 |
| Subject: | Re: How to use transparent png in createfrompng? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105825@lists.php.net to get a copy of this message | ||
>Hi!
>
>I'm having problems with createfrompng
>
>I do the following:
>
>1 Creates a new image
>
>2 Fill it with black
>
>3 copy an jpg on to it
>
>4 write some text
>
>5 tries to use copyimageresized to put a transparent png over the whole
>image
>
>It's in point 5 it goes wrong, because of some reason the png loses its
>transparens and becomes a white square instead of the nice transparent
>picture it was from the beginning
>
>What have I done wrong or is it simply impossible to perform what i want?
Wild guess:
Set the transparent color of *BOTH* images to the *SAME* color before
copying?
--
Like Music? http://l-i-e.com/artists.htm