Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!mel.dit.csiro.au!latcs1!arthur From: arthur@latcs1.oz.au (Arthur Proestakis) Newsgroups: comp.windows.x Subject: XGetPixel help needed? Summary: Determining the color of a pixel. Keywords: X Xlib Message-ID: <9446@latcs1.oz.au> Date: 25 Jan 91 05:08:22 GMT References: <427@yonder.UUCP> Reply-To: arthur@latcs1.oz.au (Arthur Proestakis) Organization: Comp Sci, La Trobe Uni, Australia Lines: 8 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