php codes

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
User avatar
elecktricity
Forum Contributor
Posts: 128
Joined: Sun Sep 25, 2005 8:57 pm
Location: Trapped in my own little world.
Contact:

php codes

Post by elecktricity »

hello, I was just wondering if it was possible to have a php page that colored different parts of an image using variables... might be a bit confusing so how about this:

http://site.com/images.php?ball=000000

and an image with a transparent ball that fills the ball with the color black
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

Use GD.
User avatar
elecktricity
Forum Contributor
Posts: 128
Joined: Sun Sep 25, 2005 8:57 pm
Location: Trapped in my own little world.
Contact:

Post by elecktricity »

dont think it's there, I will look through it again, but im trying to replace a color in the image or like fill part of the image with a color, if you get what I mean
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

if you don't have GD, you would need to either get your host to install it or find a php "native" solution that can read and write graphics along with have, at minimum, accessors to the pixels for adjusting them...
Post Reply