Page 1 of 1

PHP GD -> get color -> print color

Posted: Mon Sep 12, 2011 8:21 am
by morplug
Hello everyone!

I need a little help to get functions names from the GD library.
first i want to say i have a little knowledge with GD library like create image with words and etc.

So , what i'm trying to do is to take image and than
take the color of the first pixel on the top left than do some function work and than
set this pixel on the top left to another color.

now , i know how the algorithm should look like , i just don't know what function i need to use to:
take specific pixel color from the image
set new color for pixel on specific place

i'll be glad if you could help me with that ,
regards , Mor.

Re: PHP GD -> get color -> print color

Posted: Mon Sep 12, 2011 10:16 am
by Weirdan
imagecolorat(), imagesetpixel()