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

Is php session id unique?

1022


When should you use a stored procedure?

1019


What are regular expressions in programming?

961


armstrong number by using php while number is given by the keyboard.?

2240


What is php trait?

1033


How can we submit form without a submit button?

1074


List types of array are available in php?

1083


Is php an object or array?

1012


What is the use of addslashes in php?

988


How many types of arrays are there in php?

1021


How to enable cURL in PHP?

1205


How to download and install php for windows?

1093


what is mean by portal

2130


How do I escape data before storing it into the database?

1048


Why session is required?

996