本文介绍了叠加静态绘制的图像在相机preVIEW的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要,而我的手机是在相机preVIEW mode.As现在我引用这个链接[链接] <一来显示静态PNG图片href=\"http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-$p$pview-surfaceview\">Overlay图像到相机preVIEW SurfaceView 。而这个链接以显示相机preVIEW画面[链接]的。请建议继续further.Thanks。

I need to display a static .png image while my mobile is in the camera preview mode.As for now I am referencing this link [a link]Overlay images onto Camera preview SurfaceView . and this link to display the camera preview screen[a link]http://android-er.blogspot.com.au/2010/12/add-overlay-on-camera-preview.html. Please suggest to proceed further.Thanks.

推荐答案

把相机的preVIEW SurfaceView和ImageView的到的FrameLayout或RelativeLayout的。该SurfaceView必须先在布局和ImageView的第二次,所以它是SurfaceView上述绘制。

Put the camera's preview SurfaceView and an ImageView into a FrameLayout or a RelativeLayout. The SurfaceView must be first in the layout and the ImageView second, so it is drawn above the SurfaceView.

这篇关于叠加静态绘制的图像在相机preVIEW的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 19:49