开发者

Get pixel value from an Android display?

开发者 https://www.devze.com 2023-01-07 00:21 出处:网络
I\'m not even concerned with the camera per se.I want at the closest thing to the display screen.Meaning:it cou开发者_如何学JAVAld even be the desktop the user is looking at, completw w/ the backgroun

I'm not even concerned with the camera per se. I want at the closest thing to the display screen. Meaning: it cou开发者_如何学JAVAld 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. 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.

I'm familiar with BitmapFactory.decodeFile() for getting at the pixel contents of a file. 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

and then process the resulting image file with BitmapFactor.decodeFile() ?

0

精彩评论

暂无评论...
验证码 换一张
取 消