且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

旋转图像时如何检测图像的哪一部分已被触摸?

更新时间:2022-04-01 06:48:08

解码x&触摸事件的y位置,然后在位图上调用getPixel: http://developer.android.com/reference/android/graphics/Bitmap.html

Decode the x & y position of the touch event then call getPixel on the Bitmap: http://developer.android.com/reference/android/graphics/Bitmap.html