Sign in to follow this  
Followers 0
Mason

C++ Help : Pixel Detection

4 posts in this topic

I have been searching around google, and most of the things I have found on the subject are about collision detection for game programming. I am attempting to do in C++ what AutoIt's PixelFind function does. I have found nothing to get me started though. Preferably I want to do it somewhat low level, without having to use the windows API or a graphics library like DirectX, BUT if it is necesarry I will. Thanks for any input on functions or articles or information you can give me.

Share this post


Link to post
Share on other sites



Are you wanting to read the entire screen or a single window? No, DirectX is not necessary. You will have to use a few Windows APIs. Do you know how to work with memory bitmaps? Heres an article for getting a bitmap of the screen.

http://msdn.microsoft.com/library/default....itmaps_5a5h.asp

Share this post


Link to post
Share on other sites

I use pixel search in a dev:

GetPixel() function just return you RGB color code.

Good luck

Share this post


Link to post
Share on other sites

GetPixel()? What needs to be imported? What needs to be linked? Is it a class member function? You aren't specific at all there.

Share this post


Link to post
Share on other sites

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  
Followers 0