imagecopy save colors

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
flann
Forum Commoner
Posts: 38
Joined: Tue Aug 23, 2005 10:48 pm

imagecopy save colors

Post by flann »

is there a way to copy two images using gd and save the colors? I've been able to get the two images copied but the second image color changes based on the first ones color. I want to preserve both colors independently of each other.

edit:
Shouldn't imagealphablending($img, false); for the image that is getting blended, stop this from happening?
flann
Forum Commoner
Posts: 38
Joined: Tue Aug 23, 2005 10:48 pm

Post by flann »

I found where I was going wrong, where I used imagecreate I needed to use imagecreatetruecolor.
Post Reply