FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Opposite of imagetruecolortopalette?





PatTheGreat42
I'm doing some fun image coding, and I find myself trying to create a background of a certain color and then paste a truecolor image on top of it using imagecopyresampled(). However, to create an image of a certain color for the background, I'm using imagecolorallocate(), but this only works with pallette based images; when I try to paste a truecolor image on top, it doesn't come out pretty.

So basically, is there either a) a way to take an image created with imagecreatetruecolor(), and assign it all one color as to make a background, or b) is there a function opposite of imagetruecolortopalette()?

Thanks!
Related topics
Accident insurance claims
The Unofficial Jokes Thread
How Spyware Works!!!
php variables
Great One-Liners & Quotes
STEVEN WRIGHT QUOTES
English is "Speaked" here
Bad Drivers
Spam warnings...
Friendship between men and women
Unrequited love with best friend of opposite sex?
Snow already... sometimes South Dakota is not fun!
being friends only with someone of the opposite sex
Is Science the Opposite of Religion?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.