Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!usc!wuarchive!rex!uflorida!gatech!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Determining color at mouse location Message-ID: <9012101756.AA00460@Larry.McRCIM.McGill.EDU> Date: 10 Dec 90 17:56:34 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 14 > How would one determine the color index of the pixel under the > mouse/sprite hotspot? > I know how to find the x,y coordinates of the sprite location. I > could figure out the offset into the window array from those, but I'm > hoping there's a more direct way to determine the color. I'm not sure what you mean by the "window array", but you could always just use XGetImage to read back a 1x1 image. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu