please try and search the highend forums before you post as this has come up several times before.
also, if you simply open the MEL commands reference and type "color" in the search box you'll find something called colorAtPoint which sounds like it maybe relevent..? ![]()
but basically to do what you want is very simple, so take a look at the colorAtPoint command and see if you're still stuck after that.
:nathaN