How To Detect Which Part Of An Image Has Been Touched, When Image Is Rotated?
I have an image like this one. I can rotate it using this code. Now I would like to know, which color has been touched, independently of the wheel's position. For example, whatever
Solution 1:
Decode the x & y position of the touch event then call getPixel on the Bitmap: http://developer.android.com/reference/android/graphics/Bitmap.html
Post a Comment for "How To Detect Which Part Of An Image Has Been Touched, When Image Is Rotated?"