View Full Version : PLEASE HELP, URGENT! GetColorPixel?
09-21-2002, 01:02 PM
Is there a function that tell us what the color of a specific pixel is on a screen?
For example, if I want to know the color of the pixel located at x=100, y=100?
I will appreciate your help.
09-21-2002, 03:19 PM
I think glReadPixels can pick up a single pixel. I've only used it for a whole screen but you could try something like the following:
The GL_RGB option tells it to get all 3 color settings. You can change this to get individual colors if you wish.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.