Sign in to follow this  

Color From Point?

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

This topic is 3680 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this