Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can I find the colour of a pixel of an image?

Answer Posted / jude jeevanraj.p

This is easily done through using the imagecolorat function.

You must pass as parameters the image resource, and the x
and y co-ordinates you want to find the color of, for
instance:

$rgb = imagecolorat($im, 5, 10);

Will get a reference to the colour used at 5,10 (X,Y) on
the image.

Depending on the version of the GD library you are using
and the type of image, you may experience different return
values

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is php in simple words?

995


What is the purpose of php?

948


What type of headers that PHP supports?

1012


What is a php session?

1033


What is final class and final method?

1044


How do you call a constructor for a parent class?

890


Is nan in php?

1021


What is empty () in php?

948


What is use of mysqli_query in php?

936


How you can update memcached when you make changes to php?

1059


What library is used for pdf in php?

1026


Explain me what is the difference between explode() and split() functions?

1056


What is php data type?

953


Can php variables have numbers?

990


How to send a cookie to the browser?

1012