简体   繁体   English

如何在CWAC相机片段上设置图像

[英]how to set the image on CWAC-Camera Fragment

I am using the CWAC camera library in my application. 我在我的应用程序中使用CWAC相机库。 I tried this and this is working fine showing the camera preview in the relevent Fregment. 我尝试了这一点,这在relevent Fregment中显示相机预览效果很好。

Now all I want to past a picture on that camera preview and whenever I click button to take picture it should take picture with that image. 现在,我只想在该相机预览上粘贴图片,每当我单击按钮拍照时,它都应使用该图片进行拍照。 I want image in forground and the camera preview in background of it . 我要在前景中添加图像,并在背景中获取相机预览。 So is there any way to do that . 那么有什么办法可以做到这一点。 Here is the sample code that I am using to take picture 是我用来拍照的示例代码

This has nothing to do with the CWAC-Camera library. 这与CWAC-Camera库无关。 If you want to merge multiple image files together, you are welcome to do so, but you would do that after taking the picture. 如果要将多个图像文件合并在一起,欢迎这样做,但是您可以拍照进行合并。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM