Communicating with pixels

wdegler

Active Member
Licensed User
Longtime User
I have two related questions:

How can I write B4A code to

1. determine the coordinates of a touched pixel on the screen?

2. determine the pixel (its color) given its coordinates?

These are essentially opposite operations.

Any help will be greatly appreciated.
 

wdegler

Active Member
Licensed User
Longtime User
Thanks, NJDude

Thanks. I have tried your sample app and find that it does exactly what I am looking for in question #1!
Please let me know if you ever get a clue about #2.

wdegler
 
Upvote 0
Top