如何借鉴相机preVIEW的顶部? [英] How to draw on top of camera preview?

查看:186
本文介绍了如何借鉴相机preVIEW的顶部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要画上,我们得到当我们的相机是在Android手机的看法有些事情。

I want to draw some thing on the view which we get when our camera is on in android mobile.

我不想从相机拍照,也没有记录的视频只是视图,然后在屏幕上绘制一些东西。

I do not want to take picture nor record video just that view from camera and then draw some thing on screen.

借鉴屏幕不会是问题,但是,当我们打开摄像头,查看我们获取和我们如何使用该视图在我们的应用程序?

Drawing on screen is will not be issue but when we turn on camera which view we get and how can we use that view in our application?

推荐答案

您需要检查的机器人照相机API

您可以得到preVIEW在 <$ C $显示C> SurfaceView 或自己的视图子类,然后可以用来借鉴。一些更多的知识可能会发现<一个href=\"http://stackoverflow.com/questions/2933882/how-to-draw-an-overlay-on-a-surfaceview-used-by-camera-on-android\">here.

You can get the preview to display in a SurfaceView or your own View-subclass, which can then be used to draw on. Some more knowledge might be found here.

这篇关于如何借鉴相机preVIEW的顶部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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