简体   繁体   English

从Android显示器获取像素值?

[英]Get pixel value from an Android display?

I'm not even concerned with the camera per se. 我什至不关心相机本身。 I want at the closest thing to the display screen. 我想要最接近显示屏的东西。 Meaning: it could even be the desktop the user is looking at, completw w/ the background and the icons she moves back and forth. 含义:它甚至可能是用户正在查看的桌面,带有背景和来回移动的图标。

Let's say, at time t=1 sec, the app goes to pixel (78, 300) on that display and obtains its value. 假设在时间t = 1秒,该应用将转到该显示器上的像素(78,300)并获取其值。 What may be at (78, 300) could be a portion of the icon or some speck of tree leaf on the photo being used as desktop background. (78,300)可能是图标的一部分,或者是用作桌面背景的照片上的一些树叶斑点。

I'm familiar with BitmapFactory.decodeFile() for getting at the pixel contents of a file. 我熟悉BitmapFactory.decodeFile()来获取文件的像素内容。 But what about the display? 但是显示呢?

Thank you for any assistance. 感谢您的协助。

Perhaps you could use an intent to call this app: http://handheld.softpedia.com/get/Others/Screenshot-Android-71410.shtml 也许您可以使用一种意图来调用此应用程序: http : //handheld.softpedia.com/get/Others/Screenshot-Android-71410.shtml

and then process the resulting image file with BitmapFactor.decodeFile() ? 然后使用BitmapFactor.decodeFile()处理生成的图像文件?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM