Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

get RGB value on screen?

This topic is 5599 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to draw objects onto the some place on the background that has a certen RGB value. I use GetPixel(hWnd, x, y) to get the rgb value. But the result is wired. Could you recommend other ways to test a RGB of a point on the screen? Thanks!!

Share this post


Link to post
Share on other sites
Advertisement
ya everything with getPixel and ReadPixel is wierd. I''m using ReadPixel in the initilize part of my engine and it does a lot of wacky things. I did so talking to people and everyone seems to say it is just wierd. So anyhow. One person said to use the fulstrum and xyz to calculate the pixels yourself. But it seemed like it would be pretty slow. oh well.

Like, you don''t get to shoot anyone. And where are all the nude women!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!