Jump to content
  • Advertisement
Sign in to follow this  
lostincpp

Color From Point?

This topic is 3891 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

Anyone know the simple way to determine what color lies beneath a specific point on the screen? I remember it has something to do with device contexts and coordinate conversions, but I can't remember how to put it all together to make it work. Haven't dealt with graphics since before DX7.

Share this post


Link to post
Share on other sites
Advertisement
Either ...

I know why you're asking ... but I'm not sure what problems might be encountered in doing it one way or the other.

Ideally, for my immediate plans, I would like to be able to place a mouse cursor in a window outside of my application and read the color located at that location and the corresponding mouse coordinates. A lot of the application that I'm writing uses the mouse coordinate system and I'd like to be consistent with it.

But I'll take anything you can offer and can probably work from that to get where I need to be if it isn't right for my needs.

Thanks in advance for you efforts :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!