安卓:获得的触摸事件的原始位图数据 [英] Android: get raw bitmap data from touch events

查看:190
本文介绍了安卓:获得的触摸事件的原始位图数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能得到一个Android的触摸屏与触摸点的原始数据数组/位图? (见插图)

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

到目前为止,我只知道命令event.getX(),event.getY(),event.getSize,...

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

推荐答案

这是不可能做到这一点在用户空间。触摸输入驱动器,内核的一部分,是负责采取位图,并将其转换成不同的点。为了达到你想达​​到的目的,你需要建立一个新的Andr​​oid内核的触摸驱动程序的工作方式不同。这些新的驱动程序必须与未经处理的数据进行交互的API。

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.

这篇关于安卓:获得的触摸事件的原始位图数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆