如何借鉴相机preVIEW的顶部?相机、preVIEW

由网友(傾城傾国傾妳芯i)分享简介:我要画上,我们得到当我们的相机是在Android手机的看法有些事情。I want to draw some thing on the view which we get when our camera is on in android mobile.我不想从相机拍照,也没有记录的视频只是视图,然后在屏幕上绘制一些东...

我要画上,我们得到当我们的相机是在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在 SurfaceView 或自己的视图子类,然后可以用来借鉴。一些更多的知识可能会发现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.

阅读全文

相关推荐

最新文章