PDA

View Full Version : Read Pixel Color



stealthmaker
08-12-2003, 01:00 PM
is there anyway that i can read a color off a pixel?

nexusone
08-12-2003, 01:20 PM
Originally posted by stealthmaker:
is there anyway that i can read a color off a pixel?

Yes, glReadPixels, but can slow down the graphics pipe line.
What are you trying to do maybe a better way then with glReadPixels


[This message has been edited by nexusone (edited 08-12-2003).]

stealthmaker
08-12-2003, 01:37 PM
well im working on an assignment that i have, im supposed to make a simple paint program.. and i thought that i would be really nice to have like a colorful triangle or whatever that i can select the drawing color from.. so if i click on it it would read the pixel color and set it .. http://www.opengl.org/discussion_boards/ubb/smile.gif

stealthmaker
08-14-2003, 02:56 AM
okk i got it working http://www.opengl.org/discussion_boards/ubb/smile.gif thanx for ur time man.
cheers!