GrabPixelsExample -- grabbing pixel values from an image, based on the location of the mouse.

The source.