0

Ok, I'm not sure if it's at all possible, but is there a way to determine the color of a certain point on the screen? I'm using an onTouchEvent and I want to know the color where the user touched. Thanks.

user940016
  • 2,878
  • 7
  • 35
  • 56
  • 2
    You might want to see this : http://stackoverflow.com/questions/6272859/getting-the-pixel-color-value-of-a-point-on-an-android-view-that-includes-a-bitm – Kazekage Gaara May 30 '12 at 17:56

1 Answers1

1

In the end I used getDrawingCache on the view and then getPixel on the bitmap with the coordinates received in the onTouchEvent function.

user940016
  • 2,878
  • 7
  • 35
  • 56