arthur@latcs1.oz.au (Arthur Proestakis) (01/25/91)
I am new to Xlib programming and I am having trouble determining the color of the pixel under the hotspot after a user clicks. I created an image from the region of the pixmap where the buttonpress was detected in order to use XGetPixel. I am aware that to determine the color I must use the ZPixmap argument to XGetImage, but I don't understand the value XGetPixel returns. Can anyone please explain what this value means? Am I going about this problem all wrong? Thank you in advance. Arthur