Pixel under mouse

Hi there

I want to allow the user to change the colours of a model. I want a colour pallete they can select from with the mouse - like Photoshop. Is there a pixel under mouse function I can use to evaluate the colour pixel under the mouse?

thanks

Texture2D.GetPixel Could work if your palette is a separate texture.

You might have to do a little calculating with mouse position on screen versus position in texture, I think.