imagecolorat() help

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
Pintonite
Forum Newbie
Posts: 17
Joined: Mon May 20, 2002 5:11 pm
Contact:

imagecolorat() help

Post by Pintonite »

I'm having difficulty using this function. Perhaps I am doing something wrong. At the moment I am trying to use it to help me differentiate from thousands of images so i can view only those that I want and ignore the others. Is this function only useable when creating virtual images or can it be used for images that have already been created?

Thanks
duke9
Forum Newbie
Posts: 7
Joined: Thu May 23, 2002 4:17 pm

Re: imagecolorat() help

Post by duke9 »

Pintonite wrote: Is this function only useable when creating virtual images or can it be used for images that have already been created?
Thanks
It can be used on existing files, the code would be something like that

Code: Select all

$img = imagecreatefrompng ("photo1.png");
$color = imagecolorat($img,10,30);
There are other functions for other image formats, take a look at
http://www.php.net/manual/en/ref.image.php
Pintonite
Forum Newbie
Posts: 17
Joined: Mon May 20, 2002 5:11 pm
Contact:

Post by Pintonite »

thanks for the submit
Post Reply