Is it possible to get the pixel color in android?

273 Views Asked by At

This is my first time that I want to make a simple app that will detect color of the current pixel by specifying X and Y coordinates of the main screen or other app like game. So if it is possible please give me function name or give me an example!

Thanks in advance!

1

There are 1 best solutions below

1
On

You will need a Canvas for that, together with the SurfaceView view. Then you will be able to select a pixel from the canvas and get its color values.