I am making a project where the user, in Flash chooses a character (from a movie), and then chooses an outfit and then a weapon. I then want to send those vars to PHP. That is where I am stuck. I know how to have PHP make an image show up in the browser but I need to see if it is possible for PHP to first lay down the image of the character and then an image of the outfit and weapon on top of that character. To do this the outfit and the weapon would have to be transparent so that the character will show up behind the outfit and weapon. Can this be done? Or does anyone have a better way of doing this. Thanks and glad to have joined this comunity, it was recommended to me by a friend who is a PHP prorammer.
Thanks, Dvl
PHP creating transparent gifs
Moderator: General Moderators
- dull1554
- Forum Regular
- Posts: 680
- Joined: Sat Nov 22, 2003 11:26 am
- Location: 42:21:35.359N, 76:02:20.688W
ive done a little work with this, yes you can do it, you can do it pretty easily with PHP_GD2, search for GD2 on google or php.net
i dont remember if you have to use pngs of gifs or maybe both support transparency.... i dont rember but theres lots of examples floating around and a couple of good ones in the php manual
i dont remember if you have to use pngs of gifs or maybe both support transparency.... i dont rember but theres lots of examples floating around and a couple of good ones in the php manual
view libraries installed code.
I may have that library installed. What is the php code that tells me what libray I have installed on my server?
To check what's installed use phpinfo().
The image generation thing .. you just need to use imagecopy(). http://www.phpgd.com/articles.php?article=5 explains the basics of copying from one image to another .. just make sure your source images are PNG files with the transparency set properly.
The image generation thing .. you just need to use imagecopy(). http://www.phpgd.com/articles.php?article=5 explains the basics of copying from one image to another .. just make sure your source images are PNG files with the transparency set properly.