Android: get raw bitmap data from touch events

别等时光非礼了梦想. 提交于 2019-12-08 05:15:33

问题


Is there a possibility to get an array/bitmap with the raw data of the touched spots on an Android touch display? (See illustration)

So far I only know the commands event.getX(), event.getY(), event.getSize, ...


回答1:


It is not possible to do this in user space. The touch input driver, part of the kernel, is responsible for taking the 'bitmap' and converting it into different points. In order to accomplish what you are trying to achieve, you need to build a new android kernel whose touch drivers work differently. These new drivers would have to provide an API for interacting with the unprocessed data.



来源:https://stackoverflow.com/questions/15403604/android-get-raw-bitmap-data-from-touch-events

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!