Android Camera2 - Draw circle focus area

孤街醉人 提交于 2019-12-25 16:47:35

问题


I'm trying to develop a custom application that uses Camera 2 API and I would like to add the feature "tap to focus". In other words, when I tap on the screen to focus, it shows a circle of the focus area.

How can I draw the circle focus area?

I followed the Google Camera2Basic example.

Thank you.


回答1:


May be enough is draw circle of tap area, not focus area? In this case You can save X and Y pos of tap and use it as center of circle. And You can use any tutorial for drawing over camera preview, like that.



来源:https://stackoverflow.com/questions/40510161/android-camera2-draw-circle-focus-area

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