Layne3 on Mon, 17 Dec 2012 06:17:06
Hello. I am currently making a movement prediction application.
In a timer I take a screenshot, oh lets say every 50ms.
As soon as two screenshots have been made I want code to be able to compare the two images, and draw ontop of the changed pixels. After the pixels have been drawn on I want to be able to find chunks of the pixels that have been drawn that are 10x10 pixels. Find the location(center) of that chunk and store it as a string. After two strings have been stored I want to find the difference in location between those two strings, after the distance has been calculated I want to move the mouse to the second chunk + the difference in chunk location.
Thorsten Gudera on Mon, 17 Dec 2012 07:58:39
As soon as two screenshots have been made I want code to be able to compare the two images ...
take both images, lock the bits, loop over the pixels, check the pointers values, do something when your condition is met, unlock the bits.
Thorsten Gudera on Mon, 17 Dec 2012 08:00:02