how to check particular pixel's value on screen based on rectangle's position in (x1, y1,x2, y2)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to check particular pixel's value on screen based on rectangle's position in (x1, y1,x2, y2)

kuldeep
if rectangle's position on screen is (126, 10, 133, 17 ) then what would be the address to look into screen using Memory.peek(add) , any formula?

in particular, if rectangle is on above described position and i want to check if there;s any pixels right below rectangle then rectangle shouldn't move. how to do that?
Reply | Threaded
Open this post in threaded view
|

Re: how to check particular pixel's value on screen based on rectangle's position in (x1, y1,x2, y2)

ivant
Have you implemented Screen.drawPixel() from chapter 12? If so, you should know how to find the specific word and the specific bit in that word that corresponds to the pixel, you're interested in.