Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想问一个与相机实时取景有关的问题。
当我们点击相机预览上的某个地方时,会出现一个焦点。我应该如何获得该焦点的 X 和 Y 坐标或像素?
提前致谢。
此方法提供所有焦点区域的列表,并尝试获取每个焦点区域的Rect,通过它您可以获得矩形的 (x,y)。