开发者

display camera view as bagckground image

开发者 https://www.devze.com 2023-03-28 18:25 出处:网络
I\'d like to use cam开发者_运维知识库era\'s preview image as background image for a SurfaceView\'s canvas.

I'd like to use cam开发者_运维知识库era's preview image as background image for a SurfaceView's canvas. How it can be done? Thanks, Eyal.


This is what worked for me : I created a relative layout in the XML, Then i created a customCameraView and added it to to the layout, Then i created the GLSurfaceView, made the background translucent and set its setZOrderOnTop to true, then added it to the layout.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号